Set the total items count properly. #2256