---
schema_version: "1"
id: 2c306e4485c084eb8ac387a90cc0b0b4c24f3b0b757afd591383e1ea669a6d8a
title: count
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/sales/264-0-0/spiff_function_ref_count.md
canonical_url: https://help.salesforce.com/s/articleView?id=sales.spiff_function_ref_count.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: addcb3ebb3977c110f63b2c15d09ec91a57f0771b4f11a5089f5fbaf58a6fd13
description: Returns the total number of items in a list or data filter in Salesforce Spiff.
products:
  - Sales Cloud
  - Sales Enablement
release: "264"
---
# count

Returns the total number of items in a list or data filter in Salesforce Spiff.

### Required Editions

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small edition"><colgroup><col></colgroup><tbody><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available in: both Salesforce Classic (not available in all orgs) and Lightning Experience</td></tr><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available in: <strong>Enterprise</strong>, <strong>Unlimited</strong>, and <strong>Developer</strong> Editions</td></tr><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available for an additional cost in: <strong>Professional</strong> Edition with Web Services API Enabled</td></tr></tbody></table>

## Syntax

```
count(list)
```

## Arguments

  
| Argument | Required? | Description |
| --- | --- | --- |
| list | Required | The list or data filter that contains the items you want to count. |

## Considerations

This function can't count a number or a string, such as `count(3)` or `count("widget")`.

## Example

Count the total number of items in a MeetingsInPeriodBDR data filter, which returns meetings booked in a period by rep.

```
=count(MeetingsInPeriodBDR)
```