Revealing oscillators calculation of the dimension of attractors