simplify number of pixel hits with max layer/disk argument