I'm looking for a way to count how many instances of a specific character there are in a 2D array that I'm working with. For example, when I print the array out, it can look like this:
[['.', '.'], ['.', 'R']]
Occasionally this array will be much larger, and I'm looking for a nice way to get the number of instances of something like 'R' for example, so that I can use it in a future if statement.