The cylinder is coaxial with the wire, therefore the wire runs through the center of the cylinder's circular faces. The cylinder has a length L, therefore it contains a length of wire L. Therefore the amount of charge inside a length of charged wire is given by:
Q = λL
where Q is the charge, λ is the wire's linear charge density, and L is the length of wire.