Update - self.cardButtons.count --> [self.cardButtons count]