The city council or board shall from time to time fix the number of employees and the salaries to be drawn by each rank in the fire and police departments of its respective cities.