java program to count number of a digits