added counter functionality and Hot/Cold improvement