object Main{
  def main(args:Array[String]) = {
    val sc = new java.util.Scanner(System.in)
    val List(n,m,c) = List.fill(3)(sc.nextInt)
    val bList = List.fill(m)(sc.nextInt)
    val count = (1 to n).map(_ => List.fill(m)(sc.nextInt).zip(bList).map{case (x,y) => x*y}.sum).count(_ > -c)
    println(count)
  }
}