The court may sentence an individual convicted of a Class D or Class E crime to perform a specified number of hours of community service work for the benefit of the State, a county, a municipality, a school administrative unit or other public entity, a charitable institution or another entity approved by the court.