Martin has birdhouses outside his home. When he checked them two weeks ago, three of them had bluebirds, four of them had sparrows, and the rest of them had martins. When he checked them last week, half of the houses that had martins had been taken over by blue jays. If he has 11 birdhouses, how many of them contained blue jays?