This program counts the number of 1 in the given number