Counting 1 and 0