introduced count argument, updated list argument to just be a flag