Decreasing Text Counter
I need to create a text input box that has a counter above it that counts down from 160 to 0 (each character typed decreases the value by 1), on reaching zero the counter resets itself again and continues to decrese but displays a (2) next to it, informing the user that they are now on their second set of characters. E.g it would start as 160(1) then display 160(2), then 160(3) etc... much like the text message function on a Nokia Phone.
Any help with this would be much appreciated. And I thank in advance anyone that can work this out for me.