String Count Method In Javascript Meaning