count Imports
Returns the number of imports that satisfies the specified predicate present in the declaration.
Return
The number of imports in the declaration.
Parameters
predicate
The predicate function to determine if an import satisfies a condition.