How to Use:
Copy and Paste: Copy the entire code block above and paste it into an HTML file.
Input Text: Enter text into the provided text area.
Count Words or Characters: Click on either “Count Words” or “Count Characters” to see the respective count. The result will be displayed below the buttons.