added tracking for how many cards are present in preferences file