def binary_1(number):
    """ Returns number of 1s in binary expansion of the number """
    count = 0
    while number > 0:
        if number % 2 == 1:
            count = count + 1
        number = number // 2
    return count