<?php
$count = mysql_fetch_assoc(mysql_query("SELECT COUNT(n.id) AS 'all',
(SELECT COUNT(*) FROM `notes` WHERE `time` > '" . $ftime . "') AS 'new'
FROM `notes` AS n"));
?>
(<?= $count['all']?>) <?= ($count['new'] > 0 ? '<span style="color: red;">+' . $count['new'] . '</span>' : '')?>