How is the amount of light entering the eye-controlled?

How is the amount of light entering the eye-controlled?