Optimizing Performance Of Coherent Lidar Systems Using Photon-Counting Arrays