Modified run_count function in com_sales for the class com_sales_countsheet