Collection Count Widget
Control panel widget showing a count of entries for a given collection.
Add the widget to your control panel dashboard by adding it to the widgets
array in the config/statamic/cp.php
config file. Pass in the name of the collection:
return [
'widgets' => [
[
'type' => 'collection_count',
'collection' => 'projects'
]
]
];