def iterate_specific_packet_range():
    """Count the number of packets in a specific range."""
    now = datetime.utcnow()
    start = now - timedelta(hours=1)

    total = 0
    for packet in archive.list_packets(start=start, stop=now):
        total += 1
        # print(packet)
    print('Found', total, 'packets in range')
Count the number of packets in a specific range.