add method to count gold in a chest