(1) Subject to section 19-861, Idaho Code, any direct expense, including the cost of a transcript that is necessarily incurred in representing an indigent person under this act, is a county charge against the county on behalf of which the service is performed.
(2)  If two (2) or more counties jointly establish an office of public defender, the expenses not otherwise allocable among the participating counties under subsection (1) of this section shall be allocated, unless the counties otherwise agree, on the basis of population according to the most recent decennial census.