Spain have played 7 seven times at the2010 world cup.
Spain have failed to win a world cup as yet.
Spain has won the world cup once
Once in 2010 (south africa) If you mean how many times has Spain WON the World Cup, then it's once, in 2010. But if you mean how many times Spain has held (as in hosted) the World Cup, then it's also once, in 1982.
Spain have yet to win the world cup.