EQA1611E COUNT( variable name ) must refer to an open STREAM file.

Explanation

You must name an open STREAM file in the COUNT built-in function.