How did math originate?

Math originated with the concept of counting.

http://www.math.wichita.edu/~richardson/timeline.html

http://library.thinkquest.org/22584/