The graininess of dark matter haloes