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

# useParticipantCounts

> useParticipantCounts is a convenience hook around the participantCounts() method.

`useParticipantCounts(): Object`

## Return value

Returns an object with the following properties:

**present** `number`

Amount of participants where `hasPresence` is `true`

**hidden** `number`

Amount of participants where `hasPresence` is `false`

## Example

```jsx theme={null}
import { useParticipantCounts } from '@daily-co/daily-react';

export const useParticipantCountsDemo = () => {
  const { present, hidden } = useParticipantCounts();

  return (
    <ul>
      <li>{present} participants with presence</li>
      <li>{hidden} participants without presence</li>
    </ul>
  );
};
```

## See also

> [card] Hooks
>
> * [useParticipantIds()](https://docs.daily.co/reference/daily-react/use-participant-ids.md)
> * [useParticipant()](https://docs.daily.co/reference/daily-react/use-participant.md)
> * [useParticipantProperty()](https://docs.daily.co/reference/daily-react/use-participant-property.md)
> * [useLocalSessionId()](https://docs.daily.co/reference/daily-react/use-local-session-id.md)
> * [useActiveParticipant()](https://docs.daily.co/reference/daily-react/use-active-participant.md)
> * [useActiveSpeakerId()](https://docs.daily.co/reference/daily-react/use-active-speaker-id.md)
> * [useLocalParticipant()](https://docs.daily.co/reference/daily-react/use-local-participant.md)
> * [useWaitingParticipants()](https://docs.daily.co/reference/daily-react/use-waiting-participants.md)

> [card] daily-js methods
>
> * [participantCounts()](https://docs.daily.co/reference/daily-js/instance-methods/participant-counts.md)


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