input: Write a python function to determine the frequency of a given character in a string that repeats.
  assert count_character("abcac", 'a') == 4
  assert count_character("abca", 'c') == 2
  assert count_character("aba", 'a') == 7
output: def count_character(s: str, c: str) -> int:
      count_per_block = s.count(c)
      total_blocks = len(s)
      complete_blocks = 10**18 // total_blocks
      remaining_characters = 10**18 % total_blocks
      total_count = count_per_block * complete_blocks
      total_count += s[:remaining_characters].count(c)
      return total_count