Add public method to get retry count