Javascript Get Count Of Character In String