Java, 92 8989 71 bytes
Now with lambdas!
(t,l,u)->{int z=0;for(;l<=u;)if((l+++"").contains(t+""))z++;return z;};
Old 89 byte function solution:
int d(int t,int l,int u){int a=0,i=l;for(;i<=u;)if((i+++"").contains(t+""))a++;return a;}
Hooray for the super increment function!