Cout Post w kategorii w kontrolerze Laravel

in CategoryController index
$categories = Category::withCount('partners')->get();

property result to access
$category->partners_count 
Elegant Echidna