HTB Acedemy question

Hey guys obviously new to this. I am currently doing the Linux fundamentals course. I thought I had found the solution to one of the questions and cant figure out why it is not correct.

The Question asks to count the total number of packages installed in the target system

I run this command
dpkg-query -l | wc -l

Get an answer of 748 but it says that is not correct. I am not sure of the first command I should put in before the pipe I’ve searched for how to list installed packages and every other method I had found gives the same answer. Where am I going wrong