> ## 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:

<ResponseField name="present" type="number">
  Amount of participants where `hasPresence` is `true`
</ResponseField>

<ResponseField name="hidden" type="number">
  Amount of participants where `hasPresence` is `false`
</ResponseField>

## 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

<CardGroup>
  <Card title="Hooks" icon="code" iconType="solid">
    * [useParticipantIds()](/reference/daily-react/use-participant-ids)
    * [useParticipant()](/reference/daily-react/use-participant)
    * [useParticipantProperty()](/reference/daily-react/use-participant-property)
    * [useLocalSessionId()](/reference/daily-react/use-local-session-id)
    * [useActiveParticipant()](/reference/daily-react/use-active-participant)
    * [useActiveSpeakerId()](/reference/daily-react/use-active-speaker-id)
    * [useLocalParticipant()](/reference/daily-react/use-local-participant)
    * [useWaitingParticipants()](/reference/daily-react/use-waiting-participants)
  </Card>

  <Card title="daily-js methods" icon="code" iconType="solid">
    * [participantCounts()](/reference/daily-js/instance-methods/participant-counts)
  </Card>
</CardGroup>
