Count occurrences

Counts the number of times the provided string occurs in the input.

Input: TextResult: Numeric value

Text input

Tool options

Examples

Service names

Input

api
worker
web
api

Expected answer

2
Search string
{"option":"Simple string","string":"a"}
A release queue

Input

v3
v1
v2
v1

Expected answer

0
Search string
{"option":"Simple string","string":"a"}
Case-sensitive usernames

Input

Alice
alice
Bob
Alice

Expected answer

1
Search string
{"option":"Simple string","string":"a"}
A short status feed

Input

ready
busy
ready
done

Expected answer

2
Search string
{"option":"Simple string","string":"a"}
Two-word labels

Input

first step
second step
first step

Expected answer

0
Search string
{"option":"Simple string","string":"a"}

Parameters

ParameterDefault valueInput and choices
Search string{"option":"Regex","string":""}Key/text encoding: Regex, Extended (\n, \t, \x...), Simple string

Related tools

Browse utils tools