I am running a simulation using an iterative algorithm, which should ideally converge at some point. I received numerous warning messages, checked all warnings that were reported and need to report the precise number of warning messages that I got for my choice of convergence criteria.
There were 50 or more warnings (use warnings() to see the first 50)
How can I get the exact number of warning messages in R?