update flower number logic