How to count m if the set of hypothesis is infinity?