import numpy as np
essay = np.array([["pass", "not pass", "not pass", "not pass", "pass"],
        ["not pass", "not pass", "not pass", "not pass", "not pass"],
        ["pass", "not pass", "pass", "not pass", "not pass"]])

u = len([y for str in essay for y in str if y == 'pass'])
print(u)
4039b2b981e68c6857b2ea2c3d2ab5763408da6f
<mask token>

<mask token>
print(u)

<mask token>
essay = np.array([['pass', 'not pass', 'not pass', 'not pass', 'pass'], [
    'not pass', 'not pass', 'not pass', 'not pass', 'not pass'], ['pass',
    'not pass', 'pass', 'not pass', 'not pass']])
u = len([y for str in essay for y in str if y == 'pass'])
print(u)

import numpy as np
essay = np.array([['pass', 'not pass', 'not pass', 'not pass', 'pass'], [
    'not pass', 'not pass', 'not pass', 'not pass', 'not pass'], ['pass',
    'not pass', 'pass', 'not pass', 'not pass']])
u = len([y for str in essay for y in str if y == 'pass'])
print(u)

import numpy as np
essay = np.array([["pass", "not pass", "not pass", "not pass", "pass"],
        ["not pass", "not pass", "not pass", "not pass", "not pass"],
        ["pass", "not pass", "pass", "not pass", "not pass"]])

u = len([y for str in essay for y in str if y == 'pass'])
print(u)