. . . "Upon a misdemeanor conviction under this paragraph, the defendant must be sentenced to a minimum of three days imprisonment and must be ordered to participate in counseling or other appropriate programs selected by the court." .