 
         numberOfExamplesRun += 1
 
-        if !world.isRunningAdditionalSuites && numberOfExamplesRun >= world.includedExampleCount {
+        if !world.isRunningAdditionalSuites && numberOfExamplesRun >= numberOfIncludedExamples {
             world.suiteHooks.executeAfters()
         }
     }

import Foundation

private var numberOfExamplesRun = 0

/**
    Examples, defined with the `it` function, use assertions to

    public func run() {
        let world = World.sharedWorld

        if numberOfIncludedExamples == 0 {
            numberOfIncludedExamples = world.includedExampleCount
        }

        if numberOfExamplesRun == 0 {
            world.suiteHooks.executeBefores()
        }
