Archimedes probably also invented a machine to measure distance, an odometer. A cart was built with wheels that turned four hundred times in one mile. A pin on the wheel would hit a 400-tooth gear, so it turned once for every mile. This gear would then make a small stone fall into a cup. At the end of a journey one could count the number of stones in the cup to find the distance.