Change type derive to counter to ops and object_count