API for maxCharOccurrence Fixes #1