added planck.py for computing expected photon counts according to planks law