Added entityCount to DataAccessService