Use this expression on the point layer:
overlay_within('wetland', id, filter:=category='wetland')
wetland is the name of the polygon layer
id is the name of the wetland id
category is the name of the field in the wetland layer containing the string wetland
See the documentation about the overlay_within() function.
Here, points are labeled with the ...
You may just double click on the legend text (in the legend properties panel, you need to deselect the auto-update option) and edit the legend text (you could just type the value or use an expression to retrieve it from the attribute table)
If you want to use an expression one possible example is
display_expression( 'display_expression( 'numpointsofHR', ...
The simplest way of doing this, is to go back to the map window, right click the layer and select "Show feature count". This will give you the feature count in the legend both in the map window and in your layout.
One way would be use the "Attributes Form" in the layer properties, and the Aggregate function.
Right-click the point layer that you want the automatic
attributation assisgned to
Head to the "Attributes Form" menu, and select the Field that you
want to assigned the label to.
You will see a "Defaults" option at the bottom of ...