You're thinking of a poly extrude. Select a face/edge and a curve, Edit Mesh>extrude and use the history of the extrude operation to control the number of divisions.