for example if want to count the number times "true" appears in this ["true", "false", "false", "true", "false"]
Asked
Active
Viewed 20 times
-1
-
1Welcome to SO. Please add the code you've attempted to your question as a [mcve]. – Andy May 05 '22 at 14:40
-
For future reference you might find reading the site [help section](https://stackoverflow.com/help) useful when it comes to [asking a good question](https://stackoverflow.com/help/how-to-ask), and this [question checklist](https://meta.stackoverflow.com/questions/260648/stack-overflow-question-checklist). – Andy May 05 '22 at 14:41