Modified run_count function in com_sales_countsheet in com_sales