Loop until a condition changes.
while
def count_halvings(n): # TODO: use a while loop count = 0 return count