155. create a count function

JavaScript

easy  - accepted / - tried

Please create a function count(), when called it should return how many times it has been called, count.reset() should also implemented.

count() // 1
count() // 2
count() // 3

count.reset()

count() // 1
count() // 2
count() // 3

Think about the edge cases.

(101)