getNavigationBadge() wont count the model

Im probably doing something wrong but... this its not working for me.
This is my code:
protected static function getNavigationBadge(): ?string
    {
        return debug(static::getModel()::count());
    }

Any idea?
image.png
Was this page helpful?