code: def test_series_count(setup, check_ref_counts):
      array = np.random.rand(10)
      array[[2, 7, 9]] = np.nan
      data = pd.Series(array)
      series = md.Series(data)
  
      result = series.count().execute().fetch()
      expected = data.count()
      assert result == expected
  
      series2 = md.Series(data, chunk_size=1)
  
      result = series2.count().execute().fetch()
      expected = data.count()
      assert result == expected
  
      series2 = md.Series(data, chunk_size=3)
  
      result = series2.count().execute().fetch()
      expected = data.count()
      assert 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 11 for calling a global function with example usage: test_series_count(setup, check_ref_counts) without return types