updated count.R and corresponding help file