get the count of a Swift enum?

enum Test {
case ONE
case TWO
case THREE
case FOUR

static var count: Int { return Test.FOUR.hashValue + 1}
}
count returns 4.