Unable to figure out why log2(max)

Add to Subsequence - Submit | CodeChef
https://www.codechef.com/viewsolution/76068508

i can only find out untill max frequency
for test case 11 22 333 4444 . I get answer as 3 but log2(4) is 2?
can anyone explan