The invocationCount in TestNG tells you how many times the test will run inside a test runner.