id | words | other
1 | lorem ipsum | dsf
2 | Lorem Ipsum is simply dummy text | sads
3 | simply dummy text | sdf
4 | Lorem Ipsum text | sdfsdf
5 | simply dummy Lorem | asddasd
I do SELECT * FROM words . How can i count how many words is in this answer of query? In this example should be 17. I use PHP and Doctrine.