> ## Documentation Index
> Fetch the complete documentation index at: https://notevil.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# CAPLfunctionGetNrOfCOConsumers

# GetNrOfCOConsumers (obsolete)

[Valid for](../../../Shared/FeatureAvailability.md):  CANoe DE

## Function Syntax

```
dword GetNrOfCOConsumers(communicationObject co);
```

## Description

Returns the current number of consumer endpoints at a (service-oriented) communication object. Note the number of endpoints may vary over time for some objects. The function is particularly useful to iterate over all consumers.

## Parameters

* **co**: Communication object.

## Return Values

The current number of consumer endpoints.

## Example

```c theme={null}
for (i = 0; i < GetNrOfCOConsumers(MirrorAdjustment); ++i)
{
  svc = MirrorAdjustment.providerSide[i,LeftMirror];
  // ...
}
```

[Programming with the Communication Concept (C#, Python and CAPL)](../../../CANoeCANalyzer/CommunicationConcept/Programming/CCP.md) • [GetNrOfCOProviders](CAPLfunctionGetNrOfCOProviders.md) • [GetNrOfCOSenders](CAPLfunctionGetNrOfCOSenders.md) • [GetNrOfCOReceivers](CAPLfunctionGetNrOfCOReceivers.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.