Counting Bobs Problem