Hello
I hope you are well.
To count the received bytes which counter are you using? Could you provide more detailed information about the solution you want to implement?
The ring buffer example from the SDK might be helpful since it counts the received bytes.
If you have more questions do not hesitate to ask me.
Best regards,
Omar