check the number of 1