if you increase the colour depth does the amount of pixels in an image stay the same?

Yes, increasing the color depth of an image does not change the number of pixels in the image. The number of pixels in an image refers to its resolution, while the color depth refers to the number of colors that can be displayed per pixel. By increasing the color depth, each pixel can display more shades of color, but the overall number of pixels in the image remains the same.