Counting bytes

Does anyone know how you could count the bytes that are passing a networking
card..?

I know it's pretty easy to do it for a com-port...