Generates state machine CUPL code for a variety of counters