Given a matrix of ones and zeroes, count the amount of clusters of ones. Treat cells as connected only when they share an edge, not a corner. Implement def count_clusters(matrix):, returning an integer for a rectangular matrix that may be empty, with dimensions at most 200 by 200.
def count_clusters(matrix):