How to count TICKS in Amibroker