initCardCount method instead of constant