added card count functionality
added card count functionality