Updated count (*) sql to accomodate two different versions of hibernate - it could return either an integer or a long. Also tweaked a method parameters to use the correct Integer/Long class - newer versions of Hibernate throw class cast exceptions when Long is subsituted for integer.
- Remove method that had been used for the dummy monitoring interface. - Updated count (*) sql to accomodate two different versions of hibernate - it could return either an integer or a long.