migrating line count functionality into a single f# file