Caculate the frequency measure using different methods