If you are considering human vision there is a definite (and surprisingly small) number of distinguishable colors.

This is known as a [MacAdam][1] diagram and shows a region around a single color, on a chromaticity plot, that is indistinguishable from the color at the center.     
The total number of colors would be the number of ellipses needed to completely fill the color space.  Obviously this depends on the individual's age, sex, lighting, etc
 
![enter image description here][2]


  [1]: http://en.wikipedia.org/wiki/MacAdam_ellipse
  [2]: https://i.sstatic.net/LtlAA.png