Mac: number of bytes transmitted over interface

netstat -ib

seems to do the trick. Thanks to nik for pointing in the right direction. (Putting the result in a new answer so as not to make future readers dig through comments.)