count_ones function

count_ones