refactors customer_count and top_customer id to unique methods