counting error