class_docstr: Calls :meth:`orion.core.io.database.AbstractDB.count`.
docstr: Call with a query.
docstr_tok: ["Call","with","a","query","."]
code: def test_count_query(self, orion_db):
      """Call with a query."""
      found = orion_db.count("test_collection", {"field1": "same1"})
      assert found == 2
  
imports: import pickle
  from datetime import datetime
  import pytest
  from orion.core.io.database import Database, DatabaseError, DuplicateKeyError
  from orion.core.io.database.ephemeraldb import EphemeralDB
  from orion.core.io.database.mongodb import MongoDB
  from orion.core.io.database.pickleddb import PickledDB
  from .conftest import insert_test_collection
label_desc: Use image node_id 2 for calling the TestCount obj's underlying member method code with example usage: obj.test_count_query(orion_db) without return types