The document under test is a part, an assembly or a drawing.  

Apply the operation if the part contains N functions with a specific name.

Example   If, in the document, the number of functions named Scan is greater than "6"then the operation is applied.