perfsampler now recieves sample count in constructor