Adding ability to count the number of listings