fixes typos in javadoc
counter now can use different separator char