The Mass File Upload App offers a straightforward way to determine the number of records to which a file is attached. When selecting the search mode and utilizing features like List View or SOQL (Salesforce Object Query Language), the app displays a message similar to the image below, indicating the total number of records found to upload the file:
This message will provide you with the exact count of records that meet the search criteria.