I think it's easier to use a calendar table. To find out how many Wednesdays and Thursdays there are in March 2013, for example, you'd do something like this.
select count(*)
from calendar
where cal_date between '2013-03-01' and '2013-03-31'
and day_of_week in ('Wed', 'Thu')
count
--
8
To extend it to count Sundays, too, just add 'Sun' to the IN clause. (Although I have to say this strikes me as kind of a weird thing to do.)
select count(*)
from calendar
where cal_date between '2013-03-01' and '2013-03-31'
and day_of_week in ('Wed', 'Thu', 'Sun')
count
--
13
Here's code for a calendar table in PostgreSQL. You'll have to jump through some hoops to translate it for MySQL, because MySQL doesn't enforce CHECK constraints.