change prosodic_count_tools to use class