@decorators.list_route()
    def count(self, request, *args, **kwargs):

        self.queryset = self.filter_queryset(self.get_queryset())
        return response.Response({'count': self.queryset.count()}, status=status.HTTP_200_OK)
Create a simple jndi binding in the running jboss instance
dataset/ETHPy150Open opennode/nodeconductor/nodeconductor/logging/views.py/EventViewSet.count--crossover with--dataset/ETHPy150Open saltstack/salt/salt/modules/jboss7.py/create_simple_binding