'use strict';
let execute = input => {
  let array = input.split('\n').map(el => el.split(' ').map(el2 => +el2));
  return array[1].filter(el => el > array[0][1]).length;
};

function Main(input) {
  console.log(execute(input));
}
Main(require('fs').readFileSync('/dev/stdin', 'utf8'));