how to fetch count of items in relation table in mysql
<p>i have two mysql db tables 'tags' and 'tags_used'. i have added images for checking the db structure.currently iam using laravel fluent query builder.
Now what i want to query is the count of rows in relation table like below. Please help me with either laravel fluent query or plain sql query.</p>

<pre><code>id    | name  |times_used
------------
1 | tag1 | 3
------------
2 | tag2 | 1
------------
3 | tag3 | 5
------------
4 | tag4 | 1
------------
5 | tag5 | 0
------------
----------
</code></pre>

<p><a href="https://i.stack.imgur.com/u6HOM.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/u6HOM.png" alt="tags structure"></a></p>

<p><a href="https://i.stack.imgur.com/oJwSn.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/oJwSn.png" alt="enter image description here"></a></p>