def countIndent(string):
  """
  Finds how many spaces are in a string before alpanumeric characters appear
  """
  spaces = 0
  for c in string:
    if c == " ":
      spaces += 1
    else:
      break
  return spaces