Author: Martin Asser Hansen - Copyright (C) - All rights reserved Contact: mail@maasha.dk Date: August 2007 License: GNU General Public License version 2 (http://www.gnu.org/copyleft/gpl.html) Description: Count the number of records in stream. Usage: ... | count_records [options] Options: [-x | --no_stream] - Do not emit records. Options: [-o | --data_out=] - Write result to file. Options: [-I | --stream_in=] - Read input from stream file - Default=STDIN Options: [-O | --stream_out=] - Write output to stream file - Default=STDOUT Examples: ... | count_records -x -o count.txt - Count records in stream and write result to 'count.txt'