Device to measure quantity used of fluid, electricity, etc.