Performance of a 4096 pixel photon counting chip