Arbitrary Deterministic variable

Can you use pytensor’s bincount?