I need to be able to count how many of the string \"O\" is in my list
top_board = [ [None, None, None, None, None, None, None, None, None], [None, None,
Try this:
sum(x.count("O") for x in top_board)