[Core] Fixes: Wrong item count in pagination control.