Number of singular points of a genus g curve with one point at infinity - Maciej Borodzik (2009)