fixed a problem with the count template variable and dashes