Was M0 a Mexican costume designer that M2 was directed by and written by
SELECT count(*) WHERE {
M0 a ns:film.film_costumer_designer .
M0 ns:film.director.film M2 .
M0 ns:film.writer.film M2 .
M0 ns:people.person.nationality ns:m.0b90_r
}