# Data_Access::count_profile_status_posts_visible_to_viewer()

Count `post_type = status` rows for a player profile, respecting the same visibility rules as `self::query_profile_feed()`.

```php
count_profile_status_posts_visible_to_viewer( int $author_id, int $viewer_id ): int
```

## Parameters

- `$author_id` (int) Post author (player) user ID.
- `$viewer_id` (int) 0 if logged out.

## Return

`int`
