Hi Where are you placing this? Since the transformation is used for every result item... and I don't think your want the number of result on every line.
SearchContext.CurrentSearchResults.Count
as for the second part you are outputing the data from the query string directly in your html, beware of injection of scripts or html.