Correct Markdown link syntax
Implement countBy
Refactor countBy and groupBy for duplication
Add test for count_by alias
Implement Python test for range