correct occurrence count