def count(self, axis='<STR_LIT>'):
i = self._get_axis_number(axis)<EOL>values = self.values<EOL>mask = np.isfinite(values)<EOL>result = mask.sum(axis=i, dtype='<STR_LIT>')<EOL>return self._wrap_result(result, axis)<EOL>
Return number of observations over requested axis.

Parameters
----------
axis : {'items', 'major', 'minor'} or {0, 1, 2}

Returns
-------
count : DataFrame