extension String: CollectionType {}

extension String {
    subscript (i: Int) -> String? {
        return i < self.count ? String(self[index(startIndex, offsetBy: i)]) : nil
    }
}

let input1 = readLine()!.split(separator: " ").map{ Int($0)! }
let num = input1[0]
let constraint = input1[1]

let input2 = readLine()!.split(separator: " ").map{ Int($0)! }

let count = input2.reduce(0) { $0 + ($1 >= constraint ? 1 : 0) }

print(count)