Yes baked beans can count as one of your five a day.
3 heaping tablespoons counts as 1 portion of your five a day so you need to eat 3 heaping tablespoons of the baked beans for one of your five a day.
Other things that count as your five a day are haricot beans, kidney beans, cannellini beans, butter beans and chickpeas.