Pixel count in digital photography does matter, and it depends on the image you are creating.
High Resolution Cameras
Most smartphones now have high resolution cameras that are capable of at least 6 MP (megapixels) which is 6 million pixels. When looking at camera specs MP is also something manufacturers advertise. The pixels are “picture elements” which determines the quality and resolution of your photos. The more pixels the > size of the photo, the more quality and detail available for the photographer/retoucher to work with. Less pixels means < size and less detail and quality. The photo undergoes further loss in detail if compressed using a format like JPEG. The image resolution is the full size of the photo measured as Width x Height = MP. When shot in full RAW format, the details are preserved and can be edited in a non-destructive way that keeps the original image but allows for export to a different format for the final edited version.
The pixel count is determined by the digital CMOS sensor in the camera. There are different types and here are some comparisons.
Read more