Q&A for professional and enthusiast programmers
SELECT T.TagName, T.[Count] AS TagCount, COUNT(P.Id) AS PostTagCount FROM Posts P INNER JOIN PostTags PT ON PT.PostId = P.Id INNER JOIN Tags T ON T.Id = PT.TagId GROUP BY T.TagName, T.[Count]