Rechecked the counting operations part