When the particles は, が or を follows みかん, 3個のみかん, みかん3個 or みかんは/が/を3個 are all valid (the nuance is a bit different, though), but other particles such like に, へ or から can't be inserted between みかん and 3個. In this case, 3個 is interpreted as something to work on みかん, not the counter of みかん.