Was a male person that M5 , M6 , and M7 were directed by and M2 and M3 were written by M0
SELECT count(*) WHERE {
M0 a ns:people.person .
M0 ns:film.director.film M5 .
M0 ns:film.director.film M6 .
M0 ns:film.director.film M7 .
M0 ns:film.writer.film M2 .
M0 ns:film.writer.film M3 .
M0 ns:people.person.gender ns:m.05zppz
}