In the Codex, there are 34 characters listed, with 10 of them being recruitable companions.
Those companions are: Alistair, Morrigan, the Dog, Leliana, Loghain, Oghren, Sten, Zevran, Wynne, and Shale. Note that Shale only becomes available after you install her add-on content.