def countNestedNames(a):
  """
  Count nested names, duplicate names are counted separately
  :param a: the nested array of names
  :return: the count
  """
  cnt = len(a)
  for item in a:
    if type(item)==list:
      cnt = cnt-1
      # cnt = cnt + countNestedNames(item)
      cnt += countNestedNames(item)
    
  return cnt