code: def test_dataframe_count(setup, check_ref_counts):
      data = pd.DataFrame(
          {
              "Person": ["John", "Myla", "Lewis", "John", "Myla"],
              "Age": [24.0, np.nan, 21.0, 33, 26],
              "Single": [False, True, True, True, False],
          }
      )
      df = md.DataFrame(data)
  
      result = df.count().execute().fetch()
      expected = data.count()
      pd.testing.assert_series_equal(result, expected)
  
      result = df.count(axis="columns").execute().fetch()
      expected = data.count(axis="columns")
      pd.testing.assert_series_equal(result, expected)
  
      df2 = md.DataFrame(data, chunk_size=2)
  
      result = df2.count().execute().fetch()
      expected = data.count()
      pd.testing.assert_series_equal(result, expected)
  
      result = df2.count(axis="columns").execute().fetch()
      expected = data.count(axis="columns")
      pd.testing.assert_series_equal(result, expected)
  
      df3 = md.DataFrame(data, chunk_size=3)
  
      result = df3.count(numeric_only=True).execute().fetch()
      expected = data.count(numeric_only=True)
      pd.testing.assert_series_equal(result, expected)
  
      result = (
          df3.count(axis="columns", numeric_only=True).execute().fetch()
      )
      expected = data.count(axis="columns", numeric_only=True)
      pd.testing.assert_series_equal(result, expected)
  
imports: from typing import NamedTuple
  import numpy
  import pytest
  import pandas
  from ....None import dataframe
  from ....config import option_context
  from ....session import get_default_session
  from ....tests.core import require_cudf, require_cupy
  from ....utils import lazy_import, pd_release_version
  from ...None import CustomReduction, NamedAgg
  from ...base import to_gpu
label_desc: Use image node_id 12 for calling a global function with example usage: test_dataframe_count(setup, check_ref_counts) without return types