unittest
{
	assert( [ "4 150", "150 140 100 200" ].parse.expand.solve == 2 );
	assert( [ "1 500", "499" ].parse.expand.solve == 0 );
	assert( [ "5 1", "100 200 300 400 500" ].parse.expand.solve == 5 );
}



import std.algorithm;
import std.conv;
import std.range;
import std.stdio;
import std.typecons;

void main()
{
	stdin.byLineCopy.parse.expand.solve.writeln;
}

auto parse( Range )( Range input )
if( isInputRange!Range && is( ElementType!Range == string ) )
{
	auto nk = input.front.split.to!( long[] );
	input.popFront;
	auto hs = input.front.split.to!( long[] );
	return tuple( nk[ 1 ], hs );
}

auto solve( long k, long[] hs )
{
	return hs.count!( ( h ) => k <= h );
}
