TALLYING Phrase (Formats 1 and 3)

identifier-2
The count field. It must be an elementary numeric item defined without the symbol P in its PICTURE character-string. You must initialize identifier-2 before the INSPECT statement is executed.
identifier-3 or literal-1
The tallying operand (the item whose occurrences are tallied) If the tallying operand is a figurative constant, it is considered to be a 1-character nonnumeric literal.
When neither the BEFORE nor AFTER phrase is specified, the following actions take place when the INSPECT TALLYING statement is executed: