add 'showMaxLength' parameter

This allows to create messages like "34 chars remaining" (for which we don't want to display the max length).