Taanis3: 4
וְכֵן עִיר שֶׁיֶּשׁ בָּהּ דֶּבֶר אוֹ מַפֹּלֶת — אוֹתָהּ הָעִיר מִתְעַנָּה וּמַתְרַעַת, וְכָל סְבִיבוֹתֶיהָ מִתְעַנּוֹת וְלֹא מַתְרִיעוֹת. רַבִּי עֲקִיבָא אוֹמֵר: מַתְרִיעוֹת וְלֹא מִתְעַנּוֹת. אֵיזֶהוּ דֶבֶר? עִיר הַמּוֹצִיאָה חֲמֵשׁ מֵאוֹת רַגְלִי, וְיָצְאוּ מִמֶּנָּה שְׁלֹשָׁה מֵתִים בִּשְׁלֹשָׁה יָמִים זֶה אַחַר זֶה — הֲרֵי זֶה דֶּבֶר; פָּחוֹת מִכָּאן — אֵין זֶה דֶּבֶר.
Similarly, a city in which there is pestilence or collapse [of buildings], that city must fast and sound [the shofar], and all surrounding areas fast but do not sound [the shofar]. R' Akiva says: They sound [the shofar] but do not fast. What is considered pestilence? [In] a city that can bring forth five hundred [men] on foot, [if] three [men] died on three successive days, it is considered pestilence. Fewer than this is not considered pestilence.