Bits count program (question from Anoob)