parameters: (self, condition=None)
return_statement: return count
docstring: Get the count of matching documents in current collection.
  
          Parameters:
             Name         Type     Info:
             condition    dict     The matching rule, return the count of all
                                         documents if None.
          Return values:
             count of result
          Exceptions:
             pysequoiadb.error.SDBBaseError
docstring_summary: Get the count of matching documents in current collection.
docstring_tokens: Get the count of matching documents in current collection .
function: def get_count(self, condition=None):
          """Get the count of matching documents in current collection.
  
          Parameters:
             Name         Type     Info:
             condition    dict     The matching rule, return the count of all
                                         documents if None.
          Return values:
             count of result
          Exceptions:
             pysequoiadb.error.SDBBaseError
          """
          bson_condition = None
          if condition is not None:
              if not isinstance(condition, dict):
                  raise SDBTypeError("condition must be an instance of dict")
              bson_condition = bson.BSON.encode(condition)
  
          rc, count = sdb.cl_get_count(self._cl, bson_condition)
          raise_if_error(rc, "Failed to get count of record")
  
          return count
function_tokens: def get_count ( self , condition = None ) : bson_condition = None if condition is not None : if not isinstance ( condition , dict ) : raise SDBTypeError ( "condition must be an instance of dict" ) bson_condition = bson . BSON . encode ( condition ) rc , count = sdb . cl_get_count ( self . _cl , bson_condition ) raise_if_error ( rc , "Failed to get count of record" ) return count