limit count update in cookie