Source: ghcn/daily/by_year. Background: Global Historical Climate Network Daily - Description.

To download all Gzipped files and count the number of lines, I did the following in a Bash shell:

  $ for i in $(seq 2019 -1 1763); do echo wget --continue https://www1.ncdc.noaa.gov/pub/data/ghcn/daily/by_year/$i.csv.gz; done
  $ for i in [1-2]*gz; do echo $i; zcat -f < $i |wc -l; done > wcs.txt