Measuring water amount using flow sensor

Hello guys, im trying to measure the amount of water that passed through a flow sensor, but i was not able to find the right code, all the codes i found were for flow rate, the sensor im using is:http://wiki.seeedstudio.com/wiki/G1'1/4_Water_Flow_sensor#Specification
and im using arduino uno, can you help me get a code for this and thanks in advance

The example code on the page you linked to provides flow rate in litres per hour. A new value is output every second.
You say you want to measure an 'amount of water', but for how long? The amount that flows in an hour, maybe? Just use some maths to add up the results from each second (into a new global variable), do this for 3600 times round the loop() and divide the result by 3600.

You could even have a number of such accumulations going, say for the last 10 minutes, last hour, and since last Arduino startup/reset.

Or since you pressed a button.

What im trying to do is only an experiment, i want to pour a bottle of water with like 500ml into the flow sensor then i want the arduino to tell me how much water got through the flow sensor

ArefQarqash:
i was not able to find the right code, all the codes i found were for flow rate,

You just didn't look hard enough. Any code that gives rate can give quantity. It measures quantity against time to get rate.