PsiCount (cell,type,simulation)
PsiCount returns the number of trials of the specified type executed in the most recent simulation. The type may be 0 for all trials, 1 for normal or ‘success’ trials (where a number appeared in cell), or 2 for error or ‘failed’ trials (where an Excel error value appeared in cell). You can omit the cell argument (but include the first comma); in this case type = 1 returns the count of trials where numbers appeared in all output cells in the model, and type = 2 returns the count of trials where an Excel error value appeared in any output cell in the model. Statistics are computed only for trials where numbers appeared in all output cells.