func strings.Count
16 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#L1147: if m := Count(s, old); m == 0 {
github.com/google/go-cmp/cmp
report_reflect.go#L316: maxLines := strings.Count(s, "\n") + 1
mime
encodedword.go#L201: if len(word) < 8 || !strings.HasPrefix(word, "=?") || !strings.HasSuffix(word, "?=") || strings.Count(word, "?") != 4 {
net/http
cookie.go#L339: cookies := make([]*Cookie, 0, len(lines)+strings.Count(lines[0], ";"))
server.go#L2788: return len(n.pattern.segments) == strings.Count(path, "/")
net/url
url.go#L533: 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#L155: lineNum := 1 + strings.Count(text, "\n")