WAN usage metering, how to?

I’m load balancing two WAN connections and would like a way of keeping track of how much data goes through each WAN interface on a monthly basis.

How would I do this? I’ve been searching for a while and haven’t come up with anything relevant.