def count(self):
ids, _, ngroups = self.grouper.group_info<EOL>val = self.obj.get_values()<EOL>mask = (ids != -<NUM_LIT:1>) & ~isna(val)<EOL>ids = ensure_platform_int(ids)<EOL>minlength = ngroups or <NUM_LIT:0><EOL>out = np.bincount(ids[mask], minlength=minlength)<EOL>return Series(out,<EOL>index=self.grouper.result_index,<EOL>name=self._selection_name,<EOL>dtype='<STR_LIT>')<EOL>
Compute count of group, excluding missing values