Added counting bits in a program