It post-decrements* the $dogcount variable by one.
*post-decrement: The value is reduced by one after the expression is completed. This is of no relevance in this situation in some situations. See the following exampl.
$i=5;
echo($i."\n"); //prints 5
echo($i--."\n"); //prints 5 because the decrement is done after the expression
echo($i."\n"); //prints 4
echo(--$i."\n"); //prints 3 because the decrement is done before the expression.
I've just thought of a much, much easier way of explaining all this. It's the operate of the increment operator ++ 😃
HTH
Bubble