This method can be used to count the number of samples sent or received prior to the graph stall. Replace the contents of the host.cpp with Hardware/sw/host_CountSamples.cpp, and repeat steps 4-6.
Revert back all the changes in source code to exercise other features in this tutorial.