Find Count Of String In Javascript Method