attempt to add an accurate action counter to bubble_sort.py