Calculate the number of entries matching the keyword(s) specified

        Args:
            search: (dict) Search query like {"categ_A": "val_A", "categ_B": "val_B"},
                documented at https://developer.mpds.io/#Categories
            phases: (list) Phase IDs, according to the MPDS distinct phases concept
            kwargs: just a mockup

        Returns:
            count (int)

def count_data(self, search, phases=None, **kwargs):
        """
        Calculate the number of entries matching the keyword(s) specified

        Args:
            search: (dict) Search query like {"categ_A": "val_A", "categ_B": "val_B"},
                documented at https://developer.mpds.io/#Categories
            phases: (list) Phase IDs, according to the MPDS distinct phases concept
            kwargs: just a mockup

        Returns:
            count (int)
        """
        result = self._request(search, phases=phases, pagesize=10)

        if result['error']:
            raise APIError(result['error'], result.get('code', 0))

        if result['npages'] > self.maxnpages:
            warnings.warn(
                "\r\nDataset is too big, you may risk to change maxnpages from %s to %s" % \
                (self.maxnpages, int(math.ceil(result['count']/self.pagesize)))
            )

        return result['count']