Minimum number of photons needed to distinguish two transparencies