Complexity of computing the size of the minimum generating set of a group