keras/src/ops/numpy.py/CountNonzero/compute_output_spec
class CountNonzero:    def compute_output_spec(self, x):
        return KerasTensor(
            reduce_shape(x.shape, axis=self.axis),
            dtype="int32",
        )