The conceptual key is that the total charge is the integral over the charge density. This is because the charge density tells you the amount of charge per each infinitesimal piece, and the integration just adds those all up.
Therefore, all you have to do is evaluate the definite integral of the charge density over x, from x=0 to x=37.4.
The result is the total charge!
Hope this helps,
Sam