Count Specific Characters In A String Javascript