Coding for optical channels with photon-counting. [deep space network]