In cases of conviction of violation of county ordinances, costs of not more than thirty dollars ($30.00) may be taxed against the defendant.