occurrence count fix