Charged-particle number density as a function of $p_{\rm T}^{\rm trig}$ measured in the transverse region for pp (left) and p-Pb collisions (right) at $\sqrt{s_{\rm NN}}=5.02$ TeV. Measurements were performed considering three $\pt$ thresholds for associated charged particles: $\pt >0.15$ GeV/$c$, $\pt >0.5$ GeV/$c$, and $\pt >1$ GeV/$c$. Data are compared with PYTHIA 8 and EPOS LHC predictions. The coloured boxes and the error bars represent the systematic and statistical uncertainties, respectively.