count

Counts how many lines arrive on standard in, and prints that single number. Takes no arguments.

Usage

count

Example

How many words contain two vowels in a row?

$ cat words.txt | match "aa|ee|ii|oo|uu" | count