The 5 refers to 5 mgs. of hydrocodone - the main pain reliever in the pill. The 500 refers to the 500 mgs. of acetaminophen. Acetaminophen enhances the effects of hydrocodone.
For more on hydrocodone http://www.healthcentral.com/chronic-pain/find-drug-25443-25.html