A counter for a fluid-powered tool that includes fluid that moves along a fluid line when the tool is in operation, the counter comprising: a body with a fluid passage comprising an inlet and an outlet that is configured for the fluid to move through the passage from the inlet to the outlet when the tool is in operation; characterized by: a piston with a first end that faces towards the outlet and a second end that faces towards the inlet, the piston positioned within the passage between the inlet and the outlet, the piston comprising a smaller cross-sectional size than the passage to be movable along the passage; a sensor target attached to the piston and positioned within the passage, the sensor target sized to be movable along the passage with the piston; a sensor configured to detect when the sensor target is within a predetermined range along the passage; a biasing member that applies a first force to the piston to bias the sensor target away from the predetermined range; a processing circuit configured to monitor when the sensor detects the sensor target; the first force of the biasing member positioning the sensor target away from the predetermined range when the tool is not in operation; the first force being less than a force applied by the fluid moving along the fluid line when the tool is in operation with the sensor target being positioned in the predetermined range. a body with a fluid passage comprising an inlet and an outlet that is configured for the fluid to move through the passage from the inlet to the outlet when the tool is in operation; characterized by: a piston with a first end that faces towards the outlet and a second end that faces towards the inlet, the piston positioned within the passage between the inlet and the outlet, the piston comprising a smaller cross-sectional size than the passage to be movable along the passage; a sensor target attached to the piston and positioned within the passage, the sensor target sized to be movable along the passage with the piston; a sensor configured to detect when the sensor target is within a predetermined range along the passage; a biasing member that applies a first force to the piston to bias the sensor target away from the predetermined range; a processing circuit configured to monitor when the sensor detects the sensor target; the first force of the biasing member positioning the sensor target away from the predetermined range when the tool is not in operation; the first force being less than a force applied by the fluid moving along the fluid line when the tool is in operation with the sensor target being positioned in the predetermined range. a piston with a first end that faces towards the outlet and a second end that faces towards the inlet, the piston positioned within the passage between the inlet and the outlet, the piston comprising a smaller cross-sectional size than the passage to be movable along the passage; a sensor target attached to the piston and positioned within the passage, the sensor target sized to be movable along the passage with the piston; a sensor configured to detect when the sensor target is within a predetermined range along the passage; a biasing member that applies a first force to the piston to bias the sensor target away from the predetermined range; a processing circuit configured to monitor when the sensor detects the sensor target; the first force of the biasing member positioning the sensor target away from the predetermined range when the tool is not in operation; the first force being less than a force applied by the fluid moving along the fluid line when the tool is in operation with the sensor target being positioned in the predetermined range.