Removed temporary pcount variable.