# Count
// allows `minute`, `hour`, `day`, `week`, `month`
$metrics = Value::make()->period('today')->count(Order::class, 'hour');
# By minute
Count the total results in the period by minutes.
$metrics = Value::make()->period('today')->countByMinutes(Order::class);
# By hour
Count the total results in the period by hours.
$metrics = Value::make()->period('today')->countByHours(Order::class);
# By day
Count the total results in the period by days.
$metrics = Value::make()->period('today')->countByDays(Order::class);
# By week
Count the total results in the period by weeks.
$metrics = Value::make()->period('today')->countByWeeks(Order::class);
# By months
Count the total results in the period by months.
$metrics = Value::make()->period('today')->countByMonths(Order::class);
← Value Metric Average →