Posting data and counting how much data

Something like that, but maybe can be done in another way?