Measure data transfer

You know how in the webhosting services website it says that you only have
20GB data transfer and stuph like that. I’m planning to set up my own hosting for a while to get experience on it. But how do I measure the data transfer using Fedora Core 1?