count before storage io