Piya has slept only three hours. which part of speech is the word 'only' here?

Answer: 
An adverb
Piya has slept only three hours. which part of speech is the word 'only' here?