dont use undefined var $ifcount