added dynamic sample counts to POM implementation in demo_derivative_maps.html