Using ConTeXt, I have a macro which can be given a unique key value:

```
\macro{000010}
\macro{000011}
\macro{000010}
\macro{000010}
\macro{000012}
\macro{000011}

```

I need to be able to access information on the number of times that value has appeared so far in the document and the number of times that value appears in total. The code above would give me this information:

```
1/3
1/2
2/3
3/3
1/1
2/2

```

The information is not simply displayed in the page, I need to access this information for use in conditionals.

How can I obtain information on how many times a macro has held a certain value and how many times it will in the entire document?