fixing index calculations
fixing index calculations

increment "count" after setting the 1st argument of the list, so we get
messages like "SDES CNAME foo" instead of "SDES CNAME CNAME"

iem-projects/pd-iemrtp