The WEIGHT statement uses Count to weight the observations.
proc freq data=pain;
   weight count;