Please read the following table in HTML format from a webpage and then answer the question in detail according to the table. Each table cell is defined by a <td> and a </td> tag. Each table row starts with a <tr> and ends with a </tr> tag. 'rowspan=m' and 'colspan=n' represents a cell spaning over 'm' rows and 'n' columns.

Webpage title:
Shusha
Table title:
Demographics
Table:
<table id='hittask' contenteditable='False'>
<tr> <th colspan=1 rowspan=1 > Year </th><th colspan=2 rowspan=1 > Armenians </th><th colspan=2 rowspan=1 > Azerbaijanis </th><th colspan=2 rowspan=1 > Others </th><th colspan=1 rowspan=1 > Total </th></tr>
<tr> <td class="highlighted"  colspan=1 rowspan=1 > 1851 </td><td colspan=1 rowspan=1 >  </td><td colspan=1 rowspan=1 >  </td><td colspan=1 rowspan=1 >  </td><td colspan=1 rowspan=1 >  </td><td colspan=1 rowspan=1 >  </td><td colspan=1 rowspan=1 >  </td><th class="highlighted"  colspan=1 rowspan=1 > 15,194 </th></tr>
<tr> <td colspan=1 rowspan=1 > 1886 </td><td colspan=1 rowspan=1 > 15,188 </td><td colspan=1 rowspan=1 > 56.7% </td><td colspan=1 rowspan=1 > 11,595 </td><td colspan=1 rowspan=1 > 43.3% </td><td colspan=1 rowspan=1 > 23 </td><td colspan=1 rowspan=1 > 0.1% </td><th colspan=1 rowspan=1 > 26,806 </th></tr>
<tr> <td colspan=1 rowspan=1 > 1897 </td><td colspan=1 rowspan=1 > 14,420 </td><td colspan=1 rowspan=1 > 55.7% </td><td colspan=1 rowspan=1 > 10,778 </td><td colspan=1 rowspan=1 > 41.6% </td><td colspan=1 rowspan=1 > 683 </td><td colspan=1 rowspan=1 > 2.6% </td><th colspan=1 rowspan=1 > 25,881 </th></tr>
<tr> <td colspan=1 rowspan=1 > 1904 </td><td colspan=1 rowspan=1 >  </td><td colspan=1 rowspan=1 > 56.5% </td><td colspan=1 rowspan=1 >  </td><td colspan=1 rowspan=1 > 43.2% </td><td colspan=1 rowspan=1 >  </td><td colspan=1 rowspan=1 >  </td><th colspan=1 rowspan=1 > 25,656 </th></tr>
<tr> <td class="highlighted"  colspan=1 rowspan=1 > 1916 </td><td class="highlighted"  colspan=1 rowspan=1 > 23,396 </td><td colspan=1 rowspan=1 > 53.3% </td><td class="highlighted"  colspan=1 rowspan=1 > 19,121 </td><td colspan=1 rowspan=1 > 43.6% </td><td colspan=1 rowspan=1 > 1,352 </td><td colspan=1 rowspan=1 > 3.1% </td><th class="highlighted"  colspan=1 rowspan=1 > 43,869 </th></tr>
<tr> <th colspan=8 rowspan=1 > March 1920: Massacre and expulsion of Armenian population by Azerbaijan </th></tr>
<tr> <td colspan=1 rowspan=1 > 1926 </td><td colspan=1 rowspan=1 > 93 </td><td colspan=1 rowspan=1 > 1.8% </td><td colspan=1 rowspan=1 > 4,900 </td><td colspan=1 rowspan=1 > 96.4% </td><td colspan=1 rowspan=1 > 111 </td><td colspan=1 rowspan=1 > 2.2% </td><th colspan=1 rowspan=1 > 5,104 </th></tr>
<tr> <td colspan=1 rowspan=1 > 1939 </td><td colspan=1 rowspan=1 > 1,476 </td><td colspan=1 rowspan=1 > 27.2% </td><td colspan=1 rowspan=1 > 3,701 </td><td colspan=1 rowspan=1 > 68.2% </td><td colspan=1 rowspan=1 > 247 </td><td colspan=1 rowspan=1 > 4.5% </td><th colspan=1 rowspan=1 > 5,424 </th></tr>
<tr> <td colspan=1 rowspan=1 > 1959 </td><td colspan=1 rowspan=1 > 1,428 </td><td colspan=1 rowspan=1 > 23.3% </td><td colspan=1 rowspan=1 > 4,453 </td><td colspan=1 rowspan=1 > 72.8% </td><td colspan=1 rowspan=1 > 236 </td><td colspan=1 rowspan=1 > 3.9% </td><th colspan=1 rowspan=1 > 6,117 </th></tr>
<tr> <td colspan=1 rowspan=1 > 1970 </td><td colspan=1 rowspan=1 > 1,540 </td><td colspan=1 rowspan=1 > 17.7% </td><td colspan=1 rowspan=1 > 6,974 </td><td colspan=1 rowspan=1 > 80.2% </td><td colspan=1 rowspan=1 > 179 </td><td colspan=1 rowspan=1 > 2.1% </td><th colspan=1 rowspan=1 > 8,693 </th></tr>
<tr> <td colspan=1 rowspan=1 > 1979 </td><td colspan=1 rowspan=1 > 1,409 </td><td colspan=1 rowspan=1 > 13.1% </td><td colspan=1 rowspan=1 > 9,216 </td><td colspan=1 rowspan=1 > 85.5% </td><td colspan=1 rowspan=1 > 159 </td><td colspan=1 rowspan=1 > 1.5% </td><th colspan=1 rowspan=1 > 10,784 </th></tr>
<tr> <th colspan=8 rowspan=1 > September 1988: Nagorno-Karabakh conflict: Expulsion of Armenian population </th></tr>
<tr> <td colspan=1 rowspan=1 > 1989 </td><td colspan=1 rowspan=1 >  </td><td colspan=1 rowspan=1 >  </td><td colspan=1 rowspan=1 >  </td><td colspan=1 rowspan=1 > 98% </td><td colspan=1 rowspan=1 >  </td><td colspan=1 rowspan=1 >  </td><th colspan=1 rowspan=1 > 15,039 </th></tr>
<tr> <th colspan=8 rowspan=1 > May 1992: Capture by Armenian forces. Expulsion of Azerbaijani population </th></tr>
<tr> <td colspan=1 rowspan=1 > 2005 </td><td colspan=1 rowspan=1 > 3,105 </td><td colspan=1 rowspan=1 > 100% </td><td colspan=1 rowspan=1 >  </td><td colspan=1 rowspan=1 >  </td><td colspan=1 rowspan=1 >  </td><td colspan=1 rowspan=1 >  </td><th colspan=1 rowspan=1 > 3,105 </th></tr>
<tr> <td colspan=1 rowspan=1 > 2009 </td><td colspan=1 rowspan=1 > 3,900 </td><td colspan=1 rowspan=1 > 100% </td><td colspan=1 rowspan=1 >  </td><td colspan=1 rowspan=1 >  </td><td colspan=1 rowspan=1 >  </td><td colspan=1 rowspan=1 >  </td><th colspan=1 rowspan=1 > 3,900 </th></tr>
<tr> <td colspan=1 rowspan=1 > 2015 </td><td colspan=1 rowspan=1 > 4,446 </td><td colspan=1 rowspan=1 > 100% </td><td colspan=1 rowspan=1 >  </td><td colspan=1 rowspan=1 >  </td><td colspan=1 rowspan=1 >  </td><td colspan=1 rowspan=1 >  </td><th colspan=1 rowspan=1 > 4,446 </th></tr>
</table>
Question:
How did the population and ethnic make up of Shusha change from 1851 to 1916?
Answer:
In 1851, the population of Shusha was 15,194 people and in 1916 there were 43,869 people, of which 23,396 were Armenians, and 19,121 were Azerbaijanis.