packet counter and traffic control

hello
i have ESP8266 and some stations connected on it
is there any way to calculate traffic used by wifi based on Mac address ??
for example:
mac1 >> 150meg byte
mac2 >> 800m byte

Are you serving pages from the central unit? If so you are the one sending the data, you could count

J-M-L:
Are you serving pages from the central unit? If so you are the one sending the data, you could count

if serve from central unit how can count?

When you get a request read the header to identify client and count how many byte you send ?

tanx a lot j-m-l
can you give an example ?which library can use for that?

Well what is your code today?