18. The method according to claim 12 , wherein the method comprises assigning at least one of the memory cells to store a state indicator, and upon making the second assignment, incrementing the state indicator.
12. A method for counting, comprising: defining a count code comprising multiple count words, which comprise at least a less significant word and a more significant word; making a first assignment of first and second groups of memory cells, among multiple groups of the memory cells in a memory, to store the less significant word and the more significant word, respectively; in response to occurrences of a count input, incrementing the less significant word from an initial value up to a first limit in each of a plurality of successive first iterations; in response to reaching the first limit in each of the successive first iterations, incrementing the more significant word from an initial value up to a second limit in each of a plurality of successive second iterations; in response to reaching the second limit, making a second assignment, different from the first assignment, of the groups of the memory cells that are to store the less significant and the more significant word; and continuing the first and second iterations subject to the second assignment.