Measuring or controlling the consumption of ink