import streamlit as st text = st.text_area("Enter ur text") count = 0 for char in text: count += 1 st.write(count)