Hi I am retuning the count of some rows using eloquent as so in my repository:

```
public function countOpenProjects(){
        $value = 'Open';

        //return \Auth::user()->projects()->count();
        return  \Project::with(['status'])
            ->whereHas('status', function($q) use($value) {
                // Query the name field in status table
                $q->where('name', '=', $value); // '=' is optional
            })
            ->whereUserId(Auth::user()->id)
            ->count();
    }

```

and in my users controller I call this as so:

```
 public function counttest()
    {

        $usersprojects = $this->userrepo->countOpenProjects();

        return $usersprojects;

    }

```

The count is returned correctly. But i'm not sure how to output this into a blade format, does anyone know how?