Write a bash script that takes a file containing a minefield as an argument. The minefield is represented by . for empty spaces and * for mines. The script should count the number of mines in the file and print the result.

Example minefield file:

*..*....
........
........
...*....
........

Example Output:

$ ./mine_counter.sh minefield.txt
Number of mines: 10