Create a function to count words in F# docs using F#