The treasurers of the several counties are ex-officio collectors for their respective counties and have all the powers and duties provided by law for county collectors.