changed count file function, added help command