def count_from_n_factory(start):
 def f(index, collection):
  return (index + start)
 try:
  f.__name__ = ('count_from_%i' % start)
 except TypeError:
  pass
 return f

def count_from_n_factory ( start ) : def f ( index , collection ) : return ( index + start ) try : f . __name__ = ( 'count_from_%i' % start ) except TypeError : pass return f
numbering function: consecutive integers starting at arbitrary start .