getNavigationBadge() wont count the model
Im probably doing something wrong but... this its not working for me.
This is my code:
Any idea?
This is my code:
Any idea?

protected static function getNavigationBadge(): ?string
{
return debug(static::getModel()::count());
}