How many lenses do you imagine you rely on when you capture an image? It's true that you are likely to be using a single lens mounted on the camera, though this itself will consist of anything from around five to 25 separate elements. But when the whole camera system is considered, the answer is likely to be tens of millions of individual lenses.
This surprising figure is largely down to an array of lenses that sit on top of your camera's sensor, more commonly known as microlenses. As their name suggests, these are millions of tiny lenslets which help funnel incoming light into the photosites of your camera's sensor. These were initially created for interline-transfer CCDs (found in the vast majority of earlier video and stills cameras), but it is partly thanks to adopting such innovations that CMOS sensors have overtaken them as the sensor of choice for most of today's DSLRs and other cameras.
Sensors inside digital cameras are not entirely light-sensitive, as their structure and necessary circuitry takes up space on their surface. The light which hits these parts of the sensor would ordinarily be wasted; placing a lens over this area means it can be channelled into a different, light-sensitive part of the sensor. As each photosite stands to receive more light it effectively increases the sensitivity of the sensor, and with more light coming into each photosite the ratio of light to the unwanted signal produced by the sensor is increased, in turn reducing image noise.
As beneficial as microlense are, however, there are a few caveats associated with their use. Purple fringing, for example, is known to be partly caused by microlenses. Furthermore, using microlenses means that the sensitivity of a pixel becomes dependent on the lens's aperture, as this affects the angle of incoming light. Light arriving at particularly oblique angles, for example, is sometimes refracted so that it strikes either a neighbouring photosite (known as pixel crosstalk) or part of the sensor that isn't light sensitive.