count()
Returns the number of rows that match the query criteria.
For example, to calculate the number of carriers:
count() operates on the stream that is input to the group or cogroup statement. It doesn’t operate on the newly grouped stream or on an ungrouped stream.