Rule Based Vs Learning Based Frequency Estimation Algorithms