class_docstr: Base class for database framework wrappers.
  
  Attributes
  ----------
  host: str
     It can be either:
        1. Known hostname or IP address in which database server resides.
        2. URI: A database framework specific connection string.
  name: str
     Name of database containing experiments.
  port: int
     Port that database server listens to for requests.
  username: str
      Name of user with write/read permissions to database with name `name`.
  password: str
      Secret phrase of user, `username`.
docstr: Count the number of documents in a collection which match the `query`.
  
  Parameters
  ----------
  collection_name: str
     A collection inside database, a table.
  query: dict
     Filter entries in collection.
docstr_tok: ["Count","the","number","of","documents","in","a","collection","which","match","the","`","query","`",".","Parameters","--","--","--","--","--","collection_name",":","str","A","collection","inside","database",",","a","table",".","query",":","dict","Filter","entries","in","collection","."]
code: def count(self, collection_name, query=None):
      """Count the number of documents in a collection which match the `query`.
  
      Parameters
      ----------
      collection_name: str
         A collection inside database, a table.
      query: dict
         Filter entries in collection.
  
      """
  
imports: import logging
  from abc import abstractmethod, abstractproperty
  from orion.core.utils import Factory, GenericFactory
label_desc: Use image node_id 12 for calling the Database obj's underlying member method code with example usage: obj.count(collection_name, query) without return types