added a check to frmt() to print integers with no decimal places by default. fixed a LaTeX error in count.R