code: def count(self, paths):
          ''' Count files in a path
  
          :param paths: List of paths to count
          :type paths: list
          :returns: a generator that yields dictionaries
  
          **Examples:**
  
          >>> list(client.count(['/']))
          [{'spaceConsumed': 260185L, 'quota': 2147483647L, 'spaceQuota': 18446744073709551615L, 'length': 260185L, 'directoryCount': 9L, 'path': '/', 'fileCount': 34L}]
  
          '''
          if not isinstance(paths, list):
              raise InvalidInputException("Paths should be a list")
          if not paths:
              raise InvalidInputException("count: no path given")
  
          for item in self._find_items(paths, self._handle_count, include_toplevel=True,
                                       include_children=False, recurse=False):
              if item:
                  yield itef count(self, paths):
          ''' Count files in a path
  
          :param paths: List of paths to count
          :type paths: list
          :returns: a generator that yields dictionaries
  
          **Examples:**
  
          >>> list(client.count(['/']))
          [{'spaceConsumed': 260185L, 'quota': 2147483647L, 'spaceQuota': 18446744073709551615L, 'length': 260185L, 'directoryCount': 9L, 'path': '/', 'fileCount': 34L}]
  
          '''
          if not isinstance(paths, list):
              raise InvalidInputException("Paths should be a list")
          if not paths:
              raise InvalidInputException("count: no path given")
  
          for item in self._find_items(paths, self._handle_count, include_toplevel=True,
                                       include_children=False, recurse=False):
              if item:
                  yield item
docs: Count files in a path
  
          :param paths: List of paths to count
          :type paths: list
          :returns: a generator that yields dictionaries
  
          **Examples:**
  
          >>> list(client.count(['/']))
          [{'spaceConsumed': 260185L, 'quota': 2147483647L, 'spaceQuota': 18446744073709551615L, 'length': 260185L, 'directoryCount': 9L, 'path': '/', 'fileCount': 34L}]