Add directoryCount to payload.