Add tool to calculate frequency feature