flow: set loop_count to zero when parsing inline functions