The county treasurer of each county shall be, by virtue of his office, collector of taxes therein, and shall perform such duties in that regard as are prescribed by law.