Were M2 and M3 written by a Swedish writer and director of M0
SELECT count(*) WHERE {
?x0 ns:film.director.film M0 .
?x0 ns:film.writer.film M0 .
?x0 ns:people.person.nationality ns:m.0d0vqn .
M2 ns:film.film.written_by ?x0 .
M3 ns:film.film.written_by ?x0
}