 import Foundation
 
 private var numberOfExamplesRun = 0
+private var numberOfIncludedExamples = 0
 
 /**
     Examples, defined with the `it` function, use assertions to


        numberOfExamplesRun += 1

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

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

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

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