code: def _add_commas(s, sep=','):
      
      if len(s) <= 3:
          return s
  
      return _add_commas(s[:-3], sep) + sep + s[-3:]
docs: Add commas to output counts.
  
      From: http://code.activestate.com/recipes/498181