base command | count

Counts the number of lines in the output of the base command.

Syntax

base command | count

Parameters

base command
Specifies the base command for filtering the output.
count
Specifies the number of lines in the output of the base command.

Modes

Filter mode

Usage Guidelines

The "|" symbol in this command does not act as a separator, but instead provides access to the filter command.

Examples

The following example counts the number of lines in the base command output.

device# show running-config | count 
Count: 50 lines