#include<iostream>
using namespace std;
int main(){
    int a,b,c,x,y;
    for(int x =a;x<=b;x++){
        cin>>a>>b>>c;
        if (c%x=0){
            y++;
        }
    }
    cout<<y<<endl;
    return 0;
}
    
