Mentally preparing defendants for trial falls to counties