For a simple solution, if you have a firewall running you can see the amount of data that has gone in or out in the output of the command:
You could make a script that sums it up for you.
will also show the sum of data that has passed through the interface (since it was up) in the line before the last
Or go with the ready to use option of ntop for example.