Hi Vanessa -
I was able to accomplish this by assigning the other parent tasks as Predecessors to the Production Phase task. Then I set my report filters like this: Task -> Number of Children > 1, Task Indent = 0, Task -> Name contains Production, Task -> Status Not Equal Complete and Predecessors Is Complete = True. Grouping by Portfolio will then give you a count of the # of projects in the Production Phase.
Not the textmode code you were looking for, I know, and may require some work if the Predecessor relationships don't exist.
Hope it helps,
Teale