Added "Dream Type Count" under the tools menu.

Fixed a bug in the search function when clicking on the dream count
legend and optimized the image search.