Counter for TextEdit and TextArea