Use count instead of len in reindex

@snopoke @czue 

I don't have enough data in my local setup, but I think using len may cause us to still load the entire view in memory