Well when you clikc one of the animations, your url looks something like this: index.php?id=6
How I would do this is make a field in a mysql db called viewed with a default value of 0, then everytime the page is loaded, you add 1 to it.
$query = mysql_query("UPDATE table SET viewed='viewed + 1' WHERE id='" . $_GET["id"] . "'") or die(mysql_error());
Then to display how many times it was viewed, you select the field viewed from your db where the id equals the id in the db, then display.
$query = mysql_query("SELECT viewed FROM your_table WHERE id='" . $_GET["id"] . "'") or die(mysql_error());
$row = mysql_fetch_assoc($query);
echo "This animation has been viewed " . $row["viewed"] . " times";
Cgraz