If you want a simple way to get these numbers using Linux commands, these two lines will give you a number of reads and total bases, respectively:
awk '{if (NR % 4 == 0) print $0}' myfile.fastq | wc | awk '{print $1}'
awk '{if (NR % 4 == 0) print $0}' myfile.fastq | wc | awk '{print ($3-$1)}'
This assumes that your file is called myfile.fastq.
If you are curious, the first part takes each fourth line from the fastq file, because those lines contain the nucleotide sequence. wc command in Linux counts lines, characters and bytes, and awk selects which of those are printed out.
https://en.m.wikipedia.org/wiki/FASTQ_format