update flower count logic