keep a count of number of appearance