In my reactjs application, I have an input element which contains text, and I want to have the number of lines of text inside this element, so that whenever the number of li