<commit_before>import React from "react";
import PropTypes from "prop-types";
import { withTheme } from "styled-components";
import baseTheme from "../../style/themes/base";
import StyledCharacterCount from "./character-count.style";

const CharacterCount = ({ value, limit, theme, ...props }) => (
  <StyledCharacterCount theme={theme} {...props}>
    {value}/{limit}
  </StyledCharacterCount>
);<commit_msg>fix(character count): allow screen reader to read character count<commit_after>import React from "react";
import PropTypes from "prop-types";
import { withTheme } from "styled-components";
import baseTheme from "../../style/themes/base";
import StyledCharacterCount from "./character-count.style";

const CharacterCount = ({ value, limit, theme, ...props }) => (
  <StyledCharacterCount theme={theme} aria-live="polite" {...props}>
    {`${value}/${limit}`}
  </StyledCharacterCount>
);
{'fraction_non_alphanumeric': 0.1664804469273743, 'fraction_numerical': 0.0, 'mean_word_length': 5.0134228187919465, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7058125', 'n_tokens_mistral': 256, 'n_tokens_neox': 252, 'n_words': 71}