If you are in North America, the length of the pipe has no bearing on how many wires can go inside. The only restrictions on wire fill in pipes (which are actually called conduits, not pipes, when used for wiring) are on diameter and type of conduit. Also, what types of wire and cable, not just the gauge of the wire, also determines how many are allowed by the National Electrical Code to be installed in a conduit. Wires with certain insulation take up more room in the conduit so fewer are allowed. And some types of conduit are allowed to have more wires than others even if they are the same diameter.
Look at the chart in this link which is wire fill for the 4 most common different types of metal conduit and the most common kind of building wire which is copper THHN. For this kind of wire you are allowed 9 wires for EMT conduit but can put 10 in IMC conduit (heavier wall).
http://www.elliottelectric.com/StaticPages/ElectricalReferences/ElectricalTables/Conduit_Fill_Table.aspx
Different wire types, like SO cable, would have different limits. And it doesn't matter if it is 1 foot of conduit or 1,000' of conduit. Length may affect wire size (you have to use larger wire for longer lengths to avoid voltage drop) but length of the pipe run has no bearing on how many wires are allowed in the conduit.