functional js count ducks