On the sample complexity of stabilizing linear dynamical systems from data