Count the number of images currently created for a style in a wrapper.
function getImageCount($style, $wrapper) { return count(file_scan_directory($wrapper . '://styles/' . $style['name'], '/.*/')); }