Added 2 simple functions in Foundation\Resource.

- Foundation\Resource : Added getNumberOfVotes($id).
- Foundation\Resource : Added getNumberOfDifficultyVotes($id).