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:
Daniel R. Foley
Table title:
Past Elections
Table:
<table id='hittask' contenteditable='False'>
<tr> <th colspan=2 rowspan=1 > Party </th><th colspan=1 rowspan=1 > Candidate </th><th colspan=1 rowspan=1 > Votes </th><th colspan=1 rowspan=1 > % </th><th colspan=1 rowspan=1 > ± </th></tr>
<tr> <td colspan=1 rowspan=1 >  </td><td colspan=1 rowspan=1 > Republican </td><td class="highlighted"  colspan=1 rowspan=1 > Daniel R. Foley </td><td colspan=1 rowspan=1 > 1,832 </td><td colspan=1 rowspan=1 > 43.1% </td><td colspan=1 rowspan=1 >  </td></tr>
<tr> <td colspan=1 rowspan=1 >  </td><td colspan=1 rowspan=1 > Republican </td><td colspan=1 rowspan=1 > Dennis J. Kintigh </td><td colspan=1 rowspan=1 > 2,417 </td><td colspan=1 rowspan=1 > 56.9% </td><td colspan=1 rowspan=1 >  </td></tr>
<tr> <th colspan=3 rowspan=1 > Majority </th><td class="highlighted"  colspan=1 rowspan=1 > 585 </td><td colspan=1 rowspan=1 >  </td><td colspan=1 rowspan=1 >  </td></tr>
<tr> <th colspan=3 rowspan=1 > Turnout </th><td colspan=1 rowspan=1 > 4,249 </td><td colspan=1 rowspan=1 >  </td><td colspan=1 rowspan=1 >  </td></tr>
<tr> <td colspan=1 rowspan=1 >  </td><td colspan=2 rowspan=1 > Republican hold </td><th colspan=1 rowspan=1 > Swing </th><td colspan=1 rowspan=1 > Defeat </td><td colspan=1 rowspan=1 >  </td></tr>
</table>
Question:
how many votes did Foley loose the election with ?
Answer:
Foley lost the election by 585 votes.