On the dimension of the space of integrals for finite dimensional bialgebras