This example puts the current sample size into the cell.
In a worksheet cell, you can enter:
=CB.GetRunPrefsFN(8)