Number of records

Hello,
I try to see if there is some option to take the number of data a component have in entry and to output ?

something like :
graph.getComponent().getInput();
graph.getComponent().getOutput();

?

Thanks in advance.

getGraph().getNodes().get(nodeID).getOutputPort(prtNo).getOutputRecordCounter()