How To Count The String In Javascript