Counter / Scaler for nuclear physics applications based on xem6310 from Opal Kelly