A mechanical binary counter