You can use sideways 2x4 studs, really all you are looking for is something to hold up the sheetrock. Now if you do that the wall will appear thin and look different, if it is the passage way into your pantry it may not be what you want. I have seen it done before and it does look strange, the other issue is that the wall will not have as much strength , so if you lean against the wall it will give a little, not necessarily a problem because it is a non load bearing wall but something you should think about.
The question that comes to mind is why you do not just move the wall into the pantry a few inches, you will have the extra counter space and the pantry will be only slightly smaller. Another option would be to remove the wall and extend the kitchen into the pantry area and use a few pantry cabinets.
A Photo of the area in question may help in figuring out the best options.
Hope that helps,
Ex Realtor, house flipper, remodelor and now building a vintage truck, making friends and fixing my house.
Ever Lock Yourself out? [url]www.RocLok.com[/url]
Building a vintage 39 1.5 Ton Truck[URL="http://www.1939Cummins.Info"]http://www.1939Cummins.Info[/URL]