As of May 2010, the main series consisted of the original Half-Life and its sequel Half-Life 2, alongside three expansion packs and two episodic instalments. A third episode was still in development at the time.
On top of that, several spin-off titles had been released, which is why counts vary depending on what you include. If you're tallying "main series" versus "everything," you'll get two different numbers.