# Find the number of occurrences of a sequence in a NumPy array in Python # importing packageimport numpy  # create numpy arrayarr = numpy.array([[2, 8, 9, 4],                    [9, 4, 9, 4],                   [4, 5, 9, 7],                   [2, 9, 4, 3]])  # Counting sequenceoutput = repr(arr).count("9, 4")  # view outputprint(output)