Entering edit mode
wc -l mysample.fastq
or
zcat mysample.fastq.gz | wc -l
Then divide by 4.
But I strongly doubt every read in the fastq is going to align to your genome. So I don't see how this number helps.
Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
How to count fastq reads
on a different note, I know you didn't ask but there's software to count read depth and coverage.
The same question has been asked a number of times, e.g.
How to count fastq reads
Sequence Number Count In Fastq.Gz File