cached length on map and filter