'Record a hit.
@param timestamp - The current timestamp (in seconds granularity).
:type timestamp: int
:rtype: void'

def hit(self, timestamp):

    self.getHits(timestamp)
    if (self.__dq and (self.__dq[(-1)][0] == timestamp)):
        self.__dq[(-1)][1] += 1
    else:
        self.__dq.append([timestamp, 1])
    self.__count += 1
