---
title: COUNT Command
slug: help/en-us/pulse/count-command
docTags: 
createdAt: 2026-02-09T13:09:03.818Z
---

The COUNT command calculates the total number of animals that match certain items and conditions. It offers a quick and easy way to get a total number of animals meeting specific criteria.

::Image[]{src="https://api.archbee.com/api/optimize/3h8pSJcGUXEi4HGCCYPTA/MgFcpNGQqy6H_aVUmY2LE_command-results-page3.png" size="22" width="985" height="766" position="flex-start" showCaption="false"}

See the following COUNT examples:

:::ExpandableHeading
### Determine the total number of animals due to be dried off for a specific pen

`COUNT FOR LACT>0 DCC>220 DDAT=0 PEN=1`

::Image[]{src="https://api.archbee.com/api/optimize/3h8pSJcGUXEi4HGCCYPTA/wSLZLZVmabU0dB7sxojzX_count-example1n.png" size="22" width="1067" height="600" position="flex-start" showCaption="false"}
:::

:::ExpandableHeading
### Check the total number of animals in the hospital pen (pen 12)

`COUNT FOR PEN=12`

::Image[]{src="https://api.archbee.com/api/optimize/3h8pSJcGUXEi4HGCCYPTA/TZTQrthXnp8UQESwCH904_count-example2n.png" size="28" width="1067" height="597" position="flex-start" showCaption="false"}
:::

:::ExpandableHeading
### Identify the number of animals with an active milk withhold

`COUNT FOR MKDAT>TODAY`

::Image[]{src="https://api.archbee.com/api/optimize/3h8pSJcGUXEi4HGCCYPTA/ctOpXkvRMEohh7R-RE2AG_count-example3n.png" size="24" width="1067" height="601" position="flex-start" showCaption="false"}
:::

:::ExpandableHeading
### Check the total number of animals in their first lactation for specific pens

`COUNT FOR (PEN=1 LACT=1) (PEN=2 LACT=1)`

::Image[]{src="https://api.archbee.com/api/optimize/3h8pSJcGUXEi4HGCCYPTA/lD0f-AWP6-oH-fEiMBVIp_count-example4n.png" size="24" width="1067" height="602" position="flex-start" showCaption="false"}
:::

:::ExpandableHeading
## Related Topics

- [Command Reference Guide](docId\:TmoNO0nLWnpf4e3UV7zLb)
- [Reports/Worklists Results](docId\:AGLFBf-bfmbCntpJdR-W3)
:::

