To get the number of students that got a lesser score, use the RANK function, and subtract 1.
For example, if you have a list of scores in B2:B7, your formula to find the number of students with lower scores than B4 would be:
Hope this helps,
EDIT: Ha! You guys may be faster, but my idea is... well, DIFFERENT!