Characterization of A5 and SL(2,5) by the number of conjugacy classes of non-cyclic subgroups