Menu: Found in the ANALYZE menu
Use the Count command to count the number of records in the current table or only those that meet a specified test condition.
If no test is specified, the total number of records in the table is displayed. If a global filter has been applied to the View, Count produces the number of records remaining in the file after the filtering condition has been applied.
The total number of records in the file or the number of records matching the current global filter are displayed in the center of the status bar.
The Count command automatically stores its result in a variable named COUNTn (for example, COUNT1). When Count is issued as part of a group, the sequential command number is used in the variable name n. For example, if Count is the sixth command in the group, the resulting variable is named COUNT6.
The Count command has the following command parameters: First, If, Next and While. For a description of these parameters, see Command Parameters.
COUNT <IF test> <WHILE test> <FIRST|NEXT range>