Thanks for your advice but it’s just that the task is to solve the problem using object analysis and the thing is I didn’t get the card count concept. So it’s confusing when to get bet and when hold.
With your current logic, you are only returning the count plus the word “Bet” if card is greater or equal to 2 and less than or equal to 6. Also, you are only returning the count plus the word “Hold” if the first if did not evaluate to true.
In this challenge you are always going to return the count (no matter what card is). The key to this challenge is understanding when to put the words “Bet”, “Hold” after the count. The words “Bet” and “Hold” have nothing to do with the card value, but instead depend on the value of count. You need to separate the logic of increasing or decreasing the count from the logic which adds the words “Bet” and “Hold” after count.