Here is an example that I am working on, and didn't know if it was considered bad coding?
class CounterClass
{
private $counter = 0;
static $counterOverall = 0;
function CountUp()
{
$this->$counter++;
self::$counterOverall++;
}
}