There is a view setting under the Advanced section that allows you to enable aggregation.
This feature allows you to enable the usage of SQL aggregate functions, such as MIN, MAX, SUM, AVG, and COUNT. In this recipe, the Files view uses aggregation to sum the usage counts of each file on the Drupal site.
Aggregation settings are set for each field, and when enabled, they have their own link to configure these settings:
