update card count and pile