Gigahertz Detection Rates and Dynamic Photon-Number Resolution with Superconducting Nanowire Arrays.