Does a method exist in which a database can be stored which can be checked for a certain value but the value not derived?

I want to make a database where I can put ten digit numbers and it will record it however just by looking at it no one should be able to say what was entered in it .using that database one should only be able to determine wether a given database has a number more than 1000 times given rmgd .