code: def test_count(self):
      # corner case
      frame = DataFrame()
      ct1 = frame.count(1)
      assert isinstance(ct1, Series)
  
      ct2 = frame.count(0)
      assert isinstance(ct2, Series)
  
      # GH#423
      df = DataFrame(index=range(10))
      result = df.count(1)
      expected = Series(0, index=df.index)
      tm.assert_series_equal(result, expected)
  
      df = DataFrame(columns=range(10))
      result = df.count(0)
      expected = Series(0, index=df.columns)
      tm.assert_series_equal(result, expected)
  
      df = DataFrame()
      result = df.count()
      expected = Series(dtype="int64")
      tm.assert_series_equal(result, expected)
  
imports: from pandas import DataFrame, Series
  import pandas._testing
label_desc: Use image node_id 1 for calling the TestDataFrameCount obj's underlying member method code with example usage: obj.test_count() without return types