We measure bandwidth by accumulating the bytes sent and received across HTTP connections to the instance. This includes all client connections whether it is a mobile application, an event handler, Realm Studio, etc.  If you use multiple instances, the total bandwidth used to calculate your bill is the sum of all bandwidth measured across all instances.