def get_fastq_stats(fastq_filehandle):
    """Return some basic statistics for a fastq file."""
    read_count, gc_count, total_base_count = 0, 0, 0
    for i, line in enumerate(fastq_filehandle):
        if i != 1:  # only process the reads from the fastq
            continue
        read_count += 1
        for base in line.strip().upper():
            total_base_count += 1
            if base in ['G', 'C']:
                gc_count += 1
    gc_fraction = gc_count / total_base_count
    return read_count, gc_fraction