func strings.Count

20 uses

	strings (current package)
		replace.go#L507: 			if c := Count(s, x); c != 0 {
		strings.go#L41: func Count(s, substr string) int {
		strings.go#L244: 		n = Count(s, sep) + 1
		strings.go#L1003: 	if m := Count(s, old); m == 0 {

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

	github.com/aws/aws-sdk-go-v2/aws/arn
		arn.go#L81: 	return strings.HasPrefix(arn, arnPrefix) && strings.Count(arn, ":") >= arnSections-1

	github.com/aws/smithy-go/transport/http
		headerlist.go#L131: 	if n := strings.Count(v, ","); n <= 1 {

	github.com/google/go-cmp/cmp
		report_reflect.go#L316: 	maxLines := strings.Count(s, "\n") + 1

	go/doc
		comment.go#L121: 				for i := 0; strings.Count(match, open) != strings.Count(match, close) && i < 10; i++ {

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

	net/http
		cookie.go#L282: 	cookies := make([]*Cookie, 0, len(lines)+strings.Count(lines[0], ";"))

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

	path/filepath
		path.go#L317: 		seps := strings.Count(base[b0:bl], string(Separator))

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

	text/template/parse
		lex.go#L170: 	l.line += strings.Count(l.input[l.start:l.pos], "\n")
		lex.go#L262: 			l.line += strings.Count(l.input[l.start:l.pos], "\n")
		lex.go#L272: 		l.line += strings.Count(l.input[l.start:l.pos], "\n")
		parse.go#L155: 	lineNum := 1 + strings.Count(text, "\n")