I need to count the number of spaces in my string but my code gives me a wrong number when i run it, what is wrong?

```
 int count=0;
    String arr[]=s.split("\t");
    OOPHelper.println("Number of spaces are: "+arr.length);
    count++;

```