How many pins does an IDE connector have?

The IDE connector has a total of forty pins. The parallel ATA cables usually have a maximum allowable length of only 18 inches.