This script collects user entered string, calculates and instantly updates results to show how many characters were entered. Further, it also calculates the number of alphabets, numbers and spaces. Each time a key is pressed, the process iterates. So, updating is real time.