Using Hash Table to count the frequencies : Can we use hash table for the following problems, if i am allowing extra storage O(N)?

1. Count the frequencies of all elements in an array ?

2. Count the number of occurences in an array ?

3. Finding which number is repeating maximum times in an array ?

