Generate a YGOPro Lua script for the following Yu-Gi-Oh card effect:
This card gains 400 ATK for each face-up Level 2 monster you control.
--転身テンシーン
--Tenshin
local s,id=GetID()
function s.initial_effect(c)
	--atk
	local e2=Effect.CreateEffect(c)
	e2:SetType(EFFECT_TYPE_SINGLE)
	e2:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
	e2:SetRange(LOCATION_MZONE)
	e2:SetCode(EFFECT_UPDATE_ATTACK)
	e2:SetValue(s.atkval)
	c:RegisterEffect(e2)
end
function s.filter(c)
	return c:IsFaceup() and c:GetLevel()==2
end
function s.atkval(e,c)
	return Duel.GetMatchingGroupCount(s.filter,e:GetHandlerPlayer(),LOCATION_MZONE,0,nil)*400
end