Have a bit of a look at the http://cs.elderscrolls.com/constwiki/index.php/Raw_Function_List, im no pro like many that do pass though. But i cant find any thing even in obse, but i only search for steal and stolen, might be worth to type the word "Crime" and search though each one related to crime
Seems it is a common Bug (or it is listed on the CS wiki under common bugs :
Remove Item and Selling Stackable Items with Extra Data
The 'remove item' function doesn't always work properly with more than one item, especially stolen stackable items. The in-game message (produced by the game) is correct, but the number of items the player loses is not. For example, you may get the message '5 ogre teeth removed', but only 3 were actually removed from your inventory. Mods can exacerbate this by manipulating the 'Extra Data' fields, such as the Ownership field in the CS. Because there is no known way around the problem (short of scripting thousands of items by hand), and it may also be caused by in-game actions (i.e., damaged equipment), you should not be surprised if this happens to you.
This problem is fairly common with mods that do a lot of inventory manipulation, such as ingredient sorters. Similar problems also happen when selling items that have Extra Data. The frequency of the problem is increased by mods that assign ownership to more things in the game, such as Guild Item Ownership, Clutter Ownership, and Oscuro's Oblivion Overhaul. In a few cases this problem can lead to crashes, as with Selling Stolen/Duplicated Alchemy Equipment.