I'm trying to figure out how to see the amount of total images in an image and when I run this script only thing that happens on the page is it prints a 00.
$img = imagecreatefrompng('C:/wamp/www/button.png');
$image = imagecolorstotal($img);
echo($image);
print_r($image);