Pack

update pCount function