"wManager.Wow.Helpers.Bag.GetBagItem()" - not return itemtype "Container" in bags :(
Not fully tested, but this should work:
/// <summary>
/// Used to get the item quantity by name.
/// </summary>
/// <param name="itemName">The item name.</param>
/// <remarks>Replacement for GetItemCount in vanilla.</remarks>
/// <returns></returns>
public static int GetItemQuantity(string itemName)
{
var execute =
"local itemCount = 0; " +
"for b=0,4 do " +
"if Get