Added frequencies() for freq. analysis