I want to have a set of variables holding numerical values (e.g., cnt1, cnt2, cnt3) and access them based on the foreach index.
For example:
\foreach \i in {1,...,5} {
\pgfmathtruncatemacro{\cnt\i}{\cnt\i + 4}
}
Is that possible?
(edited for clarity)
Since it is not still very clear: I want to have a numerical value to a variable with a name that is constructed based on the foreach index, and I want to do numerical operations in this variable (e.g., using pgfmath* commands).

