vue如何限制textarea的空格数

vue用统计空格的数量来监控英语单词数,但是怎么能改下maxlength变成限制空格的数量
现在可以限制30个字符

 descInput(){
           var txtVal = this.text.split(" ").length;
           this.counter = txtVal;

    },
            // methods


   text() {
        if (this.text > this.textMaxLength) {
            this.text = String(this.text).slice(0,this.textMaxLength);
}
   }
        //watch

this.text.match(/ /g).length 空格数