Parse error is not an SQL problem, fix teh parse error in your PHP code.
$result8 = mysql_query("update NonDummyFunction set Count = Count - 1 where Function_ID = 'Component_ID'") or die (mysql_error());
Also, note that COUNT is a reserved word in most SQL databases, and shouldn't be used as a fieldname.