count and display with stateless componenets