Implement scobjcount op.