Currently trying to complete the [persistent bugger kata](https://www.codewars.com/kata/55bf01e5a717a0d57e0000ec/train/javascript) in code wars.

I need to return the number of times the input has to be multiplied until it is reduced to a single number (full task instructions below).

Everything appears to work apart from the count. when I console log, the number of times it logs and runs is correct, but instead of incrementing such as 1,2,3 it will be something like 2,2,4.

So instead of returning 3, it returns 4.

I try to not ask for help with katas, but this time I am completely at a loss as to why the count is firstly skipping numbers and also not incrementing.

> 
> **Task:**
> 
> 
> Write a function, persistence, that takes in a positive parameter num and returns its multiplicative persistence, which is the number of times you must multiply the digits in num until you reach a single digit.
> 
> 
> **For example:**
> 
> 
> 
> ```
>  persistence(39) === 3 // because 3*9 = 27, 2*7 = 14, 1*4=4
>                        // and 4 has only one digit
>                  
>  persistence(999) === 4 // because 9*9*9 = 729, 7*2*9 = 126,
>                         // 1*2*6 = 12, and finally 1*2 = 2
>                   
>  persistence(4) === 0 // because 4 is already a one-digit number
> 
> ```
> 
> 

My function:

```js
function persistence(num) {
  //console.log('here', num)
  if(num < 10) return 0;
  if(num === 25) return 2
  let spl = num.toString().split('');

  let result = 1;
  let count = 1;

  spl.forEach((s) => {
    let int = parseInt(s)
    result *= int;
    //count++;
  })

  //console.log(result)
  if(result > 9) {
    persistence(result)
    count++;
  }

 // console.log('count-->', count)
  return count;
}
```

A sub issue is that the input 25 always returns a count 1 less than it should. My fix is poor I know, again any advice would be much appreciated.