Gravar-mail: Temporal and spatial multiplexed infrared single-photon counter based on high-speed avalanche photodiode