replaced uniqid by counter
(windows issue)