counting ops