fixed bug: getting searchResults list size through fn:length