How to counts the packets number sent by Telegram in one second?

I am going to do some traffic analysis of Telegram for my final project. Now I wonder that how can I know how many packets are sent or received by Telegram in a second? I want to draw a diagram to show the packets I receive in a period of time like the picture I upload.

Thank you all guys! enter image description here