Minesweeper Queens

In the diagrams below, place the required number of mines. The numbered
squares are empty, from which the given number of mines can be attacked by a
chess queen. As in standard chess, a queen can attack in eight
directions, and only one mine in a single direction.

Example. The first diagram shows an unsolved puzzle. The next shows
the solution and the third fills in how many mines can be attacked from each empty
square.