I'm trying to count and print out the numeric value of how many times the "terminator" value has been outputted. Is there any function that does this? If not how should i tackle this problem?
output = get_application_name()
var = string.match("terminator", get_application_name())
print(var)
I would like to count
nil
terminator
nil
nil
terminaor