How to specify packet numbers from pcap file?

The packet numbers are specified in the first column of the wireshark window. Use that.