Feature selection using frequencies