Q&A for professional and enthusiast programmers
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