Single photon counting module for quantum cryptography