A simple data structure for counting values