Feasibility of swim lap counter

It's tempting to suggest using RFID, but that wouldn't work through water. Could you arrange to carry an RFID tag in such a way that it was out of the water when you passed the sensor? I guess the sensor would be at the end of the lane, where you are turning.