/**
  * Returns the number of records in the table with the given category and name.
  *
  * @param tableName The name of the table to get the count from
  * @param timeFrom The starting time to consider the count from, inclusive, relatively to epoch,
  *     Long.MIN_VALUE should signal, this restriction to be disregarded
  * @param timeTo The ending time to consider the count to, non-inclusive, relatively to epoch,
  *     Long.MAX_VALUE should signal, this restriction to be disregarded
  * @return The record count
  * @throws AnalyticsWebServiceException
  */
 public long getRecordCount(String tableName, long timeFrom, long timeTo)
     throws AnalyticsWebServiceException {
   try {
     long recordCount =
         analyticsDataAPI.getRecordCount(getUsername(), tableName, timeFrom, timeTo);
     if (recordCount == -1) {
       if (logger.isDebugEnabled()) {
         logger.debug("Retrieving record count is not supported for table:" + tableName);
       }
     }
     return recordCount;
   } catch (Exception e) {
     logger.error(
         "Unable to get record count for table[" + tableName + "] due to " + e.getMessage(), e);
     throw new AnalyticsWebServiceException(
         "Unable to get record count for table[" + tableName + "] due to " + e.getMessage(), e);
   }
 }