Max Good People Statements

Given a matrix of statements where statements[i][j] indicates whether person i says person j is good, find the maximum number of people who can be good such that all statements of good people are true.

Examples
Input: [[2,1,2],[1,2,2],[2,0,2]]
Output: 2
Hints

Max Good People Statements

Given a matrix of statements where statements[i][j] indicates whether person i says person j is good, find the maximum number of people who can be good such that all statements of good people are true.