Extracting the gamma-ray source-count distribution below the Fermi-LAT detection limit with deep learning