input: Write a python function to count the number of integers up to a given number that are divisible by three.
  assert factor_of_three(50) == 16
  assert factor_of_three(30) == 10
  assert factor_of_three(100) == 33
output: def factor_of_three(n):
      return n // 3