Added script for calculating ID mask statistics