Implement function bobs_counter.