A resource that may be helpful in generating various types of packets and capturing them. It is likely to have the capability of counting the sent and received packets. Possibly could be used with netsim product:
https://github.com/sdaubert/packetgen
Another source works on Windows also:
https://sourceforge.net/projects/bittwist/