Q: How to find number of packages installed?

This one did it for me
dpkg -l | grep -c '^ii'

More info here:

12 Likes