func strings.Count

23 uses

	strings (current package)
		replace.go#L516: 			if c := Count(s, x); c != 0 {
		strings.go#L42: func Count(s, substr string) int {
		strings.go#L299: 		n = Count(s, sep) + 1
		strings.go#L1151: 	if m := Count(s, old); m == 0 {

	crypto/x509
		verify.go#L401: 	reverseLabels = make([]string, 0, strings.Count(domain, ".")+1)

	encoding/xml
		xml.go#L1173: 	if strings.Count(s, ":") > 1 {

	github.com/jackc/pgx/v5/internal/sanitize
		sanitize.go#L129: 		n := strings.Count(sql, "$") + strings.Count(sql, "--") + 1

	github.com/jackc/pgx/v5/pgtype
		hstore.go#L451: 	numPairsEstimate := strings.Count(s, ">")

	golang.org/x/text/language
		parse.go#L169: 	if strings.Count(s, "-") > 1000 {

	mime
		encodedword.go#L201: 	if len(word) < 8 || !strings.HasPrefix(word, "=?") || !strings.HasSuffix(word, "?=") || strings.Count(word, "?") != 4 {

	net/http
		cookie.go#L92: 	if !cookieNumWithinMax(strings.Count(line, ";") + 1) {
		cookie.go#L382: 		cookieCount += strings.Count(line, ";") + 1
		cookie.go#L388: 	cookies := make([]*Cookie, 0, len(lines)+strings.Count(lines[0], ";"))
		server.go#L2827: 	return len(n.pattern.segments) == strings.Count(path, "/")

	net/url
		url.go#L537: 	if strings.HasSuffix(rest, "?") && strings.Count(rest, "?") == 1 {

	testing
		match.go#L169: 	a := make(simpleMatch, 0, strings.Count(s, "/"))
		match.go#L170: 	b := make(alternationMatch, 0, strings.Count(s, "|"))

	text/template/parse
		lex.go#L193: 	l.line += strings.Count(l.input[l.start:l.pos], "\n")
		lex.go#L281: 			l.line += strings.Count(l.input[l.start:l.pos], "\n")
		lex.go#L294: 		l.line += strings.Count(l.input[l.start:l.pos], "\n")
		lex.go#L355: 	l.line += strings.Count(l.input[l.start:l.pos], "\n")
		parse.go#L167: 	lineNum := 1 + strings.Count(text, "\n")