foundation for card count