To count the number of lines in the output from a command:
For example:
user@host> show configuration | count Count: 369 lines