In third and fourth class counties the sheriff shall charge and collect for and on behalf of the county every fee accruing to his office which arises out of his duties in connection with the investigation, arrest, prosecution, care, commitment and transportation of persons accused of or convicted of a criminal offense, except such criminal fees as are chargeable to the county.
§ 57.410, RSMo