Default values have to be constants - you can't provide one which depends on another variable. So this would be fine:
public string this[string data, int maxOccurences = 0]
but what you've got isn't valid. Admittedly the error message you're getting is for a slightly different reason, but even if you could get past that, you'd run into the constness issue.