Tents and Trees

Tents and Trees (Camping) is a logic puzzle. Your task is to set up tents next to trees on a campsite according to the rules.

Tents and Trees

Rules: Enter “tents” in some cells of the grid. A number at the edge of the grid indicates the number of tents in that row or column.
Tents may not be adjacent orthogonally or diagonally. Each tent is horizontally or vertically adjacent to at least one tree.
Tents and trees can be mapped so that each tree is mapped to exactly one tent, and that tent is mapped to exactly that tree.