pc: basic process counter logic

no tests yet though