set total_card_count calculation as an independent method