count collisions