count num of 1 of an integer