Since you use Eloquent, you should try out the withCount to get the related count.
Example:
$albums = Album::withCount('songs')->get();
dd($albums) // You will notice the collection has songs_count for each album.
// For example on the first album
echo $albums[0]->songs_count;
https://laravel.com/docs/5.8/eloquent-relationships Lookup withCount here for further documentation.