Link counting works, but needs to be split out as a counting_widget.
Refactored count_widget prior to creating counting_widget.