getting counts right