Dark matter subhaloes in numerical simulations