Q&A for those who study, teach, research and apply economics and econometrics
SELECT TOP ##Limit## rank() OVER (ORDER BY count(*) DESC) AS Rank, UserId AS [User Link], count(*) AS EditCount FROM PostHistory JOIN Posts ON Posts.Id = PostHistory.PostId WHERE Posts.OwnerUserId != PostHistory.UserId GROUP BY UserId ORDER BY Rank ASC