Quantum non-demolition photon counting in a 2d Rydberg atom array