Generate a YGOPro Lua script for the following Yu-Gi-Oh card effect:
Gains 300 ATK/DEF for each "Harpie Lady" on the field.
--ハーピィズペット竜
--Harpie's Pet Dragon
local s,id=GetID()
function s.initial_effect(c)
	--atkup
	local e1=Effect.CreateEffect(c)
	e1:SetType(EFFECT_TYPE_SINGLE)
	e1:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
	e1:SetCode(EFFECT_UPDATE_ATTACK)
	e1:SetRange(LOCATION_MZONE)
	e1:SetValue(s.val)
	c:RegisterEffect(e1)
	local e2=e1:Clone()
	e2:SetCode(EFFECT_UPDATE_DEFENSE)
	c:RegisterEffect(e2)
end
s.listed_names={CARD_HARPIE_LADY}
function s.val(e,c)
	return Duel.GetMatchingGroupCount(s.filter,c:GetControler(),LOCATION_ONFIELD,LOCATION_ONFIELD,nil)*300
end
function s.filter(c)
	return c:IsFaceup() and c:IsCode(CARD_HARPIE_LADY)
end