Digital photographs are made up of very small dots called pixels (so are the images on a computer screen).
This picture here shows how your eye sees it (on the left) and how it is made up of lots of pixels if you zoom in (on the right)
http://photo.net/equipment/digital/basics/pixe ls.jpg
A digital picture is measured by how many pixels WIDE it is by many pixels HIGH it is.
So, for example, a picture 1280 pixels WIDE by 1024 pixels HIGH would consist of 1,310,720 pixels (multiply the 2 numbers together).
So that is 1.3 million pixels (or 1.3 megapixel). Some people may say 1 megapixel to keep it simple.
The sony phone you are talking about can take 2048 pixels wide by 1536 pixels high. Multiply them together and you get 3,145,728 pixels (or about 3.2 megapixel).
I guess some sites may round it down to 3 megapixel to keep it simple.
Note you CAN set a phone (or a digital camera) to take pictures at a lower quality, so maybe that it why some sites say 2 megapixels or more.
Generally the HIGHER the megapixel the better the picture.