def _iscount(X):
 X = np.asarray(X)
 remainder = np.logical_and(np.logical_and(np.all(((X % 1.0) == 0), axis=0), (X.var(0) != 0)), np.all((X >= 0), axis=0))
 dummy = _isdummy(X)
 remainder = np.where(remainder)[0].tolist()
 for idx in dummy:
  remainder.remove(idx)
 return np.array(remainder)

def _iscount ( X ) : X = np . asarray ( X ) remainder = np . logical_and ( np . logical_and ( np . all ( ( ( X % 1.0 ) == 0 ) , axis = 0 ) , ( X . var ( 0 ) != 0 ) ) , np . all ( ( X >= 0 ) , axis = 0 ) ) dummy = _isdummy ( X ) remainder = np . where ( remainder ) [ 0 ] . tolist ( ) for idx in dummy : remainder . remove ( idx ) return np . array ( remainder )
given an array x .