Measure liquid amount from the pump

If you wish to measure milliliters cheaply then the best option may be to use a piston pump or a peristaltic pump. This way the pump can control exactly how much liquid it is pumping (by volume).

If you wish to know the mass of the pumped liquid there are mass flow metres available that can do it. They do not come cheap. This page shows one of the working principles: