«Тысяча», as well as «сотня», «дюжина» (not very Russian), «пара» and, probably, some other quantity words, become a part of an adverb (= adverbial modifier of frequency in a sentence), and should be...