What you need to do is to substitute out anything between < and > first, and then do the split and word count:
return(count(preg_split(‘/( |\n)/’, preg_replace(‘/<+?>/’, ”, trim($this->text) ))));
BUT, having checked what $this->text actually produces, I don’t see any bracketed code anyway. So I’m not sure this is necessary.