Need to get number of results after checking for redirect

otherwise this fails on empty search