By now you should know that a pixel is a singular dot of color captured by the camera's sensor. The sensor being an array of multiple photovoltaic elements arranged in columns and rows that, when the shutter is clicked and the data collected, forms an image. A singular sensor can have millions of 'collectors' or photovoltaic receptors. So rather than saying, "I have a 6 million pixel camera," we simplify it by saying, "I have a 6 megapixel camera," mega meaning million.
Unfortunately that 6 megapixel camera won't always give you 6 megapixels.
"Huh?" you ask, "What do you mean my 6MP camera doesn't always give me six million pixels?" Here is what I mean; to calculate the true megapixels of an image you need to do some simple math. Take the width of your image (number of pixels wide) and multiply it by the height of your image (number of pixels tall). The resulting number (rounded to the nearest million) is the image's true megapixel rate.
You should now be able to deduce that if you crop your image in post processing you are systematically reducing the number of megapixels. Likewise, if you scale your image down you are reducing the number of megapixels. Here's an example;
My Canon 7D is advertised as an 18MP camera. A full sized image, straight out of the camera, is 5,184 pixels wide by 3,456 pixels tall. Multiplying the two numbers together we get 17,915,904 pixels or 17.9 megapixel (rounded up to 18MP). As with most cameras, I can change the quality of the images the camera can capture by making a simple menu selection. For example I can change from large JPEG to medium or small JPEG quality. The values are as follows;
NOTE: I did a quick check on the Walgreens Photo Center web site and their minimum print resolution for their photo products is 90dpi. While this means you can increase the size of your output it also means image quality will be degraded. Remember the higher the dpi on your output the better the image quality (sharpness of edges).