All the info you need is in the data sheet. Have you read it?
The outputs are high when active, but depending upon whether the device is an A or B suffix, the supply voltage, and the required LED current, you may need a buffer driver for each segment (and don't forget the required current-limit resistor in series with each segment). For common-anode (anode to +V) you would use an inverting buffer, and for common-cathode (cathode to common) you would use a non-inverting buffer.
To limit the count to 5 or 6 you will need to add an 8-input AND gate that detects the segment sequence that is high for the desired number, and use the gate output to inhibit or reset the count, as you desire.