In question "How many total packages are installed on the target system?" different results with grep and wc

Can anybody explain me why when I ““apt list --installed | wc -l”” and apt list --installed | grep -c “installed” to find the installed packages there are different results?