Make Snapshot::get_sample_count() a const function