Changed frequency counter to work with more than two symbols