# Ledger::count_since_gmt()

Number of times an action was rewarded for a user/type since a GMT datetime (inclusive).

Counts ledger rows, not points, so it measures how often the reward was earned.

```php
count_since_gmt( int $user_id, string $points_type_key, string $action_key, string $since_gmt ): int
```

## Parameters

- `$user_id` (int) User ID.
- `$points_type_key` (string) Type key.
- `$action_key` (string) Action key.
- `$since_gmt` (string) `Y-m-d H:i:s` UTC.

## Return

`int` 

## Changelog

| Version | Description |
| --- | --- |
| 1.1.0 | Introduced |
