maybe just delete all points apart from the first one? a line with one point - makes sense it would just be the first point. 

count of 0 could clear the line - or not modify it at all. 

it might still be good though to check the input - ie: if count is accidentally a negative number.