counting clustered keypoints