Gerry opens every single locker. Then he closes every second locker. Then he goes to every third locker, closing it if it is open, or opening it if it is closed.
Then he does the same with every fourth locker and so on. The process is completed with the twelfth locker.

How many lockers are open at the end?