fsharp: tweaked the count function