Every day, you spot zero or more animal species, and keep a log. For example, the first day you see a kangaroo and a koala, the second day, a koala and a zebra, just a koala the third day, and a kangaroo the fourth day.
[['kangaroo','koala'], ['koala','zebra'], ['koala'], ['kangaroo']]
That means for a streak of three days, you can say that you saw an animal you haven't yet mentioned within that streak: kangaroo, zebra, koala (starting from the first day), or zebra, koala, kangaroo (starting from the second day).
Your task: Write a program or function which computes the length of the longest streak of "new animal not yet mentioned in this streak".
Input
An array of array of strings, in whatever format. (You can take an array of dicts, for instance, or a CSV file...) Each string is lowercase letters only. There may be days with no entries. There will be at least one day. There won't be any repeats within a day. You may take animals sorted within a day.
Output
A number, the length of the longest streak.
Scoring
Code golf.
Sample data (more welcome)
[[], [], [], []]
=> 0
[['kangaroo','koala'], ['koala','zebra'], ['koala'], ['kangaroo']]
=> 3
[['fish','donkey','horse','cow'],['horse'],['cow','horse','cat','dog','giraffe'],['horse','cow','hamster'],['horse','cat','hamster','giraffe'],['horse','cow'],['cow'],['horse','cat']],
=> 6
[['wolf'],['fish','dog'], ['fish','dog'], ['fish','dog'],['fish','dog','cat'],['fish','dog'],['cat','wolf']]
=> 4
[['dog','cat','lion'],[],['fish'],['fish'],['fish'],['dog'],['fish'],['fish']]
=> 2
[]
=> 0 and[[], [], [], []]
=> 0). \$\endgroup\$[]
test case. \$\endgroup\$