This moves listview.count to evaluate last, taking the early out if possible.
mentioned in commit 7dfdd6a0