Change count tinyint to int - it will cause bug