I tried to define indexed counters, such as x1, x2, . . . etc, by defining them like this : \newcount\x1, \newcount\x2, . . . etc, but it didn't work. Is there a workaround for this in TeX or LaTeX ? I have written a small tex-file that illustrates what happens when you try it. Note added : With the remark made by @cfr, that in LaTex one may use the command \newcounter{name} the question has a good answer that cannot easily be found by using the search engine. (I have some good reference books for TeX, but not for LaTeX.)
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Example tex-file that illustrates what happens %%
%% when you use a number in the name of a counter %%
%% %%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\documentclass{article}
\usepackage[paperwidth=0.75in, paperheight=1.5in]{geometry}
\pagestyle{empty}
\begin{document}
\newcount\a \newcount\b \newcount\c7
\a=1 \b=41 \c7=78
\noindent
a = \number\a
\par \vskip 5pt \noindent
b = \number\b
\par \vskip 5pt \noindent
c7 = \number\c7
\end{document}
\newcounter
rather than\newcount
?\newcounter{a1}
is OK:-)