fixed variable 'count' from 0 to 1