I have an RSS Feed on my page showing the latest BBC Technology news. However, it currently shows all headlines and I want to restrict it to 2/3.

I'm a novice when it comes to JS, can anyone help please?