Section 10.2.5 in the GNU gettext manual explains the ngettext function:
http://www.gnu.org/software/gettext/manual/
(Sorry, but the Add Note function prevents me from including a long URL which points right to that section of the manual.)