Fixed function return types of count and card